From d9106b6e850446e706050510fd8e442184d4e273 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 18 Oct 2013 11:19:32 +0200 Subject: [PATCH] Add debug info to find a bug --- htdocs/main.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index c9c4dd9ca4c..8ccfdad0e64 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'; + { + print 'Access refused by SQL/Script injection protection in main.inc.php (when calling page '.htmlentities($_SERVER["REQUEST_URI"]).')'; exit; } }