1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-09 21:44:25 +00:00

line 2913 added urlencode

There was a cross site scripting vulnerability due to insufficient input sanitation on the $pg parameter.  This patch fixes that issue.
This commit is contained in:
ouɐɹɔs ʞɹɐɯ 2013-11-18 23:14:31 -05:00 committed by Noel Maersk
parent 93782c30ed
commit c8b97fbd8a

View File

@ -2910,7 +2910,7 @@ function display()
if ($allowcustompages === true) if ($allowcustompages === true)
{ {
$pg = trim(getparam('pg', true)); $pg = urlencode(trim(getparam('pg', true)));
if ($pagesonly === true) if ($pagesonly === true)
{ {
if ($pg !== null && $pg !== '') if ($pg !== null && $pg !== '')