Fix: functions "ereg", "ereg_replace", "eregi", "eregi_replace" is deprecated since php 5.3.0
This commit is contained in:
parent
960afb50ed
commit
d94f48112b
@ -69,9 +69,9 @@ function test_sql_and_script_inject($val)
|
||||
$sql_inj = 0;
|
||||
$sql_inj += preg_match('/delete[\s]+from/i', $val);
|
||||
$sql_inj += preg_match('/create[\s]+table/i', $val);
|
||||
$sql_inj += preg_match('/update(.)+set(.)+=/i', $val);
|
||||
$sql_inj += preg_match('/update.+set.+=/i', $val);
|
||||
$sql_inj += preg_match('/insert[\s]+into/i', $val);
|
||||
$sql_inj += preg_match('/select(.)+from/i', $val);
|
||||
$sql_inj += preg_match('/select.+from/i', $val);
|
||||
$sql_inj += preg_match('/<script/i', $val);
|
||||
return $sql_inj;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user