harmonize flags for PHP's htmlspecialchars

This commit is contained in:
Sarah Hoffmann
2023-02-20 16:46:53 +01:00
parent 6d94af3b5a
commit 5c3691fb64

View File

@@ -135,7 +135,7 @@ class Debug
public static function printSQL($sSQL)
{
echo '<p><tt><font color="#aaa">'.htmlspecialchars($sSQL).'</font></tt></p>'."\n";
echo '<p><tt><font color="#aaa">'.htmlspecialchars($sSQL, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401).'</font></tt></p>'."\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);
}
}