Enhance the anti injection layer
This commit is contained in:
parent
cddec2f4dc
commit
cc5d648888
@ -107,6 +107,7 @@ function testSqlAndScriptInject($val, $type)
|
||||
$inj += preg_match('/:|:|:/i', $val); // refused string ':' encoded (no reason to have it encoded) to lock 'javascript:...'
|
||||
//if ($type == 1)
|
||||
//{
|
||||
$inj += preg_match('/javascript%/i', $val);
|
||||
$inj += preg_match('/javascript:/i', $val);
|
||||
$inj += preg_match('/vbscript:/i', $val);
|
||||
//}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user