diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index 0378d6a1b45..20c89718321 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -73,6 +73,7 @@ function test_sql_and_script_inject($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('/union.+select/i', $val);
$sql_inj += preg_match('/'."\n";
print ''."\n";
@@ -868,13 +869,6 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
{
print ''."\n";
}
-
- // This one is required for some Ajax features
- if (! empty($conf->global->MAIN_USE_PROTOTYPE))
- {
- print ''."\n";
- print ''."\n";
- }
}
// Output module javascript