Skip to content
Snippets Groups Projects
Commit d9106b6e authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Add debug info to find a bug

parent 9bc0f54a
No related branches found
No related tags found
No related merge requests found
......@@ -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';
{
print 'Access refused by SQL/Script injection protection in main.inc.php (when calling page '.htmlentities($_SERVER["REQUEST_URI"]).')';
exit;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment