Add debug info to find a bug
This commit is contained in:
parent
9bc0f54ae8
commit
d9106b6e85
@ -119,13 +119,13 @@ function analyse_sql_and_script(&$var, $type)
|
|||||||
{
|
{
|
||||||
foreach ($var as $key => $value)
|
foreach ($var as $key => $value)
|
||||||
{
|
{
|
||||||
if (analyse_sql_and_script($value,$type))
|
if (!analyse_sql_and_script($value,$type))
|
||||||
{
|
{
|
||||||
$var[$key] = $value;
|
$var[$key] = $value;
|
||||||
}
|
}
|
||||||
else
|
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;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user