فهرست منبع

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 سال پیش
والد
کامیت
c8f9822428
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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))
 		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)."\">");
 		}
 		}
 	}
 	}
 }
 }