Commit 92758279 authored by Dries's avatar Dries

- Bugfix: wrapped an RSS item's description in a check_output() to ensure
  proper markup.
parent 3c7d0f95
......@@ -504,7 +504,7 @@ function format_rss_item($title, $link, $description, $args = array()) {
$output .= "<item>\n";
$output .= " <title>". htmlentities(strip_tags($title)) ."</title>\n";
$output .= " <link>". htmlentities(strip_tags($link)) ."</link>\n";
$output .= " <description>". htmlentities($description) ."</description>\n";
$output .= " <description>". htmlentities(check_output($description)) ."</description>\n";
foreach ($args as $key => $value) {
$output .= "<$key>". htmlentities(strip_tags($value)) ."</$key>";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment