\r
if ($num_comments > 0) {\r
if ($line["comments"]) {\r
- $comments_url = $line["comments"];\r
+ $comments_url = htmlspecialchars($line["comments"]);\r
} else {\r
- $comments_url = $line["link"];\r
+ $comments_url = htmlspecialchars($line["link"]);\r
}\r
$entry_comments = "<a target='_blank' href=\"$comments_url\">$num_comments comments</a>";\r
} else {\r
if ($line["comments"] && $line["link"] != $line["comments"]) {\r
- $entry_comments = "<a target='_blank' href=\"".$line["comments"]."\">comments</a>";\r
+ $entry_comments = "<a target='_blank' href=\"".htmlspecialchars($line["comments"])."\">comments</a>";\r
}\r
}\r
\r
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 = "<a target='_blank' href=\"$comments_url\">$num_comments comments</a>";
} else {
if ($line["comments"] && $line["link"] != $line["comments"]) {
- $entry_comments = "<a target='_blank' href=\"".$line["comments"]."\">comments</a>";
+ $entry_comments = "<a target='_blank' href=\"".htmlspecialchars($line["comments"])."\">comments</a>";
}
}