X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/513175ce23674abffdd2ebe59fdb1a600c91cd01..b79d5494f915b1b1e1dc4ce12b80680f0b7c53b3:/lib-php/DebugHtml.php?ds=sidebyside diff --git a/lib-php/DebugHtml.php b/lib-php/DebugHtml.php index 2207d529..7b0cba2d 100644 --- a/lib-php/DebugHtml.php +++ b/lib-php/DebugHtml.php @@ -135,7 +135,7 @@ class Debug public static function printSQL($sSQL) { - echo '

'.date('c').' '.htmlspecialchars($sSQL).'

'."\n"; + echo '

'.date('c').' '.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); } }