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:
parent
93782c30ed
commit
c8b97fbd8a
@ -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 !== '')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user