Skip to content

Commit cfd631e

Browse files
committed
harmonize flags for PHP's htmlspecialchars
1 parent 3d39847 commit cfd631e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib-php/DebugHtml.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public static function printGroupTable($sHeading, $aVar)
135135

136136
public static function printSQL($sSQL)
137137
{
138-
echo '<p><tt><font color="#aaa">'.htmlspecialchars($sSQL).'</font></tt></p>'."\n";
138+
echo '<p><tt><font color="#aaa">'.htmlspecialchars($sSQL, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401).'</font></tt></p>'."\n";
139139
}
140140

141141
private static function outputVar($mVar, $sPreNL)
@@ -183,7 +183,7 @@ private static function outputSimpleVar($mVar)
183183
$sOut = (string)$mVar;
184184
}
185185

186-
echo htmlspecialchars($sOut);
186+
echo htmlspecialchars($sOut, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401);
187187
return strlen($sOut);
188188
}
189189
}

0 commit comments

Comments
 (0)