Complete fix
This commit is contained in:
parent
adf15e4e64
commit
0d5c613008
@ -150,7 +150,7 @@ function testSqlAndScriptInject($val, $type)
|
||||
$inj += preg_match('/"/i', $val); // We refused " in GET parameters value.
|
||||
}
|
||||
if ($type == 2) {
|
||||
$inj += preg_match('/[:;"\'<>\?]/', $val); // PHP_SELF is a file system (or url path without parameters). It can contains spaces.
|
||||
$inj += preg_match('/[:;"\'<>\?\(\)]/', $val); // PHP_SELF is a file system (or url path without parameters). It can contains spaces.
|
||||
}
|
||||
|
||||
return $inj;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user