diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 8ccfdad0e64..33df269c965 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -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; } }