From c6c52671595ae9a60234042dffeac46c4ca1a81c Mon Sep 17 00:00:00 2001 From: Denis Walker <dez@sucs.org> Date: Sat, 9 Jul 2011 23:04:00 +0000 Subject: [PATCH] Switch to htmlentities for comment display in an attempt to stop it breaking the XHTML --- lib/blog/admin.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blog/admin.lib.php b/lib/blog/admin.lib.php index 38fb2eb..46b2502 100644 --- a/lib/blog/admin.lib.php +++ b/lib/blog/admin.lib.php @@ -605,7 +605,7 @@ class admin { echo "\t<tr>\n"; } echo "\t\t<td><a href=\"mailto:{$r['email']}\" title=\"IP: {$r['host']}\">{$r['name']}</a></td>\n"; - echo "\t\t<td>".htmlspecialchars($r['body'])."</td>\n"; + echo "\t\t<td>".htmlentities($r['body'])."</td>\n"; echo "\t\t<td><input type=\"radio\" name=\"group[$count]\" value=\"a:{$r['id']}\" /></td>\n"; if ($r['spam'] == 't') { echo "\t\t<td><input type=\"radio\" name=\"group[".$count++."]\" value=\"d:{$r['id']}\" checked=\"checked\"/></td>\n"; -- GitLab