We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d39847 commit cfd631eCopy full SHA for cfd631e
lib-php/DebugHtml.php
@@ -135,7 +135,7 @@ public static function printGroupTable($sHeading, $aVar)
135
136
public static function printSQL($sSQL)
137
{
138
- 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";
139
}
140
141
private static function outputVar($mVar, $sPreNL)
@@ -183,7 +183,7 @@ private static function outputSimpleVar($mVar)
183
$sOut = (string)$mVar;
184
185
186
- echo htmlspecialchars($sOut);
+ echo htmlspecialchars($sOut, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401);
187
return strlen($sOut);
188
189
0 commit comments