Protect Bulk Modify against XSS injection!

SVN:trunk[3117]
This commit is contained in:
Denis Flaven
2014-04-01 10:12:11 +00:00
parent ce9806b01c
commit caef02720c

View File

@@ -3284,12 +3284,12 @@ EOF
{ {
foreach($value as $vKey => $vValue) foreach($value as $vKey => $vValue)
{ {
$oP->add("<input type=\"hidden\" name=\"{$sKey}[$vKey]\" value=\"$vValue\">\n"); $oP->add("<input type=\"hidden\" name=\"{$sKey}[$vKey]\" value=\"".htmlentities($vValue, ENT_QUOTES, 'UTF-8')."\">\n");
} }
} }
else else
{ {
$oP->add("<input type=\"hidden\" name=\"$sKey\" value=\"$value\">\n"); $oP->add("<input type=\"hidden\" name=\"$sKey\" value=\"".htmlentities($value, ENT_QUOTES, 'UTF-8')."\">\n");
} }
} }
} }