diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 33b94e7730c..cc489befd63 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -75,6 +75,7 @@ function testSqlAndScriptInject($val, $type) $inj += preg_match('/into\s+(outfile|dumpfile)/i', $val); $inj += preg_match('/user\s*\(/i', $val); // avoid to use function user() that return current database login $inj += preg_match('/information_schema/i', $val); // avoid to use request that read information_schema database + $inj += preg_match('/trans("ErrorBadParameters"); -if ($mesg) print '

'.$mesg.'
'."\n"; +if ($mesg) print '
'.dol_escape_htmltag($mesg).'
'."\n"; print ''."\n"; print "\n";