Browse Source

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.
ouɐɹɔs ʞɹɐɯ 12 years ago
parent
commit
7c3890c3bd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      miner.php

+ 1 - 1
miner.php

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