Browse Source

Fix for Trac#446: prevent XSS vulnerabilities

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1564 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 13 năm trước cách đây
mục cha
commit
c8f9822428
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      portal/index.php

+ 1 - 1
portal/index.php

@@ -50,7 +50,7 @@ function DumpHiddenParams($oP, $aInteractive, $aParameters)
 	{
 		if (!in_array($sAttCode, $aInteractive))
 		{
-			$oP->Add("<input type=\"hidden\" name=\"attr_$sAttCode\" value=\"$value\">");
+			$oP->Add("<input type=\"hidden\" name=\"attr_$sAttCode\" value=\"".htmlentities($value)."\">");
 		}
 	}
 }