From 6e577ba15715cb3ccb9c54bd4e13f3f9ff2c3563 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 22 Oct 2012 01:22:44 +0400 Subject: properly escape comment links --- include/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/functions.php b/include/functions.php index f37578ba3..2fb14097f 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3352,14 +3352,14 @@ if ($num_comments > 0) { if ($line["comments"]) { - $comments_url = $line["comments"]; + $comments_url = htmlspecialchars($line["comments"]); } else { - $comments_url = $line["link"]; + $comments_url = htmlspecialchars($line["link"]); } $entry_comments = "$num_comments comments"; } else { if ($line["comments"] && $line["link"] != $line["comments"]) { - $entry_comments = "comments"; + $entry_comments = "comments"; } } -- cgit v1.2.3