From 9d6e3be5d1106360f603dbc31c01a2ac44d30880 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 26 Sep 2020 05:20:33 +0200 Subject: [PATCH] Fix #yogosha4463 --- htdocs/main.inc.php | 6 +++++- htdocs/public/payment/newpayment.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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";