Add debug info to find a bug

This commit is contained in:
Laurent Destailleur 2013-10-18 11:41:37 +02:00
parent d9106b6e85
commit 5e35731693

View File

@ -119,13 +119,13 @@ function analyse_sql_and_script(&$var, $type)
{
foreach ($var as $key => $value)
{
if (!analyse_sql_and_script($value,$type))
if (analyse_sql_and_script($value,$type))
{
$var[$key] = $value;
}
else
{
print 'Access refused by SQL/Script injection protection in main.inc.php (when calling page '.htmlentities($_SERVER["REQUEST_URI"]).')';
print 'Access refused by SQL/Script injection protection in main.inc.php (type='.htmlentities($type).' key='.htmlentities($key).' value='.htmlentities($value).' page='.htmlentities($_SERVER["REQUEST_URI"]).')';
exit;
}
}