Skip to content
Snippets Groups Projects
Commit d94f4811 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: functions "ereg", "ereg_replace", "eregi", "eregi_replace" is deprecated since php 5.3.0

parent 960afb50
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment