From cfd631e99cffd42be883a0445a33dcb2b103e61c Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Mon, 20 Feb 2023 16:46:53 +0100 Subject: [PATCH] harmonize flags for PHP's htmlspecialchars --- lib-php/DebugHtml.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib-php/DebugHtml.php b/lib-php/DebugHtml.php index e402654f..8a4d40e2 100644 --- a/lib-php/DebugHtml.php +++ b/lib-php/DebugHtml.php @@ -135,7 +135,7 @@ class Debug public static function printSQL($sSQL) { - echo '

'.htmlspecialchars($sSQL).'

'."\n"; + echo '

'.htmlspecialchars($sSQL, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401).'

'."\n"; } private static function outputVar($mVar, $sPreNL) @@ -183,7 +183,7 @@ class Debug $sOut = (string)$mVar; } - echo htmlspecialchars($sOut); + echo htmlspecialchars($sOut, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401); return strlen($sOut); } } -- 2.45.1