Better log
This commit is contained in:
parent
99461b3fa6
commit
0bd7d28fd9
@ -164,7 +164,7 @@ function analyseVarsForSqlAndScriptsInjection(&$var, $type)
|
||||
} else {
|
||||
// Get remote IP: PS: We do not use getRemoteIP(), function is not yet loaded and we need a value that can't be spoofed
|
||||
$ip = (empty($_SERVER['REMOTE_ADDR']) ? 'unknown' : $_SERVER['REMOTE_ADDR']);
|
||||
$errormessage = 'Access refused to '.$ip.' by SQL or Script injection protection in main.inc.php (type='.htmlentities($type).' key='.htmlentities($key).' value='.htmlentities($value).' page='.htmlentities($_SERVER["REQUEST_URI"]).')';
|
||||
$errormessage = 'Access refused to '.$ip.' by SQL or Script injection protection in main.inc.php - type='.htmlentities($type).' key='.htmlentities($key).' value='.htmlentities($value).' page='.htmlentities($_SERVER["REQUEST_URI"]);
|
||||
print $errormessage;
|
||||
// Add entry into error log
|
||||
if (function_exists('error_log')) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user