From 5e357316938e21441c1cdb9a062036fa1f63435f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 18 Oct 2013 11:41:37 +0200 Subject: [PATCH] Add debug info to find a bug --- htdocs/main.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } }