diff --git a/htdocs/.gitignore b/htdocs/.gitignore new file mode 100644 index 00000000000..de589999216 --- /dev/null +++ b/htdocs/.gitignore @@ -0,0 +1 @@ +/test.php diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index b63c5a02856..5a214c0466c 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -85,13 +85,16 @@ function test_sql_and_script_inject($val, $type) $sql_inj += preg_match('/(\.\.%2f)+/i', $val); } // For XSS Injection done by adding javascript with script + // This is all cases a browser consider text is javascript: + // When it found '