Merge 2 tests. Remove checkstyle errors.

This commit is contained in:
Laurent Destailleur 2014-05-06 10:44:15 +02:00
parent 601d3260e9
commit 39c0b9e356

View File

@ -86,8 +86,7 @@ function test_sql_and_script_inject($val, $type)
$sql_inj += preg_match('/insert\s+into/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('/union.+select/i', $val); $sql_inj += preg_match('/union.+select/i', $val);
$sql_inj += preg_match('/into\s+outfile/i' , $val); $sql_inj += preg_match('/into\s+(outfile|dumpfile)/i', $val);
$sql_inj += preg_match('/into\s+dumpfile/i' , $val);
$sql_inj += preg_match('/(\.\.%2f)+/i', $val); $sql_inj += preg_match('/(\.\.%2f)+/i', $val);
} }
// For XSS Injection done by adding javascript with script // For XSS Injection done by adding javascript with script