From: garvinhicking Date: Wed, 11 Apr 2007 10:17:10 +0000 (+0000) Subject: Strip tags from comments also in RSS-Feeds for comments, thanks to X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2fa50cb3da7a673741c01fe8a8c0385098344958;p=s9y.git Strip tags from comments also in RSS-Feeds for comments, thanks to tmix from the forums (garvinhicking) --- diff --git a/docs/NEWS b/docs/NEWS index ee0cd8f..c1a0a1d 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,9 @@ Version 1.2 () ------------------------------------------------------------------------ + * Strip tags from comments also in RSS-Feeds for comments, thanks to + tmix from the forums (garvinhicking) + * Patch #1697590: Proper directory name of SQLite DB-error messages, thanks to Thijs Kinkhorst diff --git a/include/functions_rss.inc.php b/include/functions_rss.inc.php index 451b2c7..c5337a9 100644 --- a/include/functions_rss.inc.php +++ b/include/functions_rss.inc.php @@ -49,6 +49,9 @@ function serendipity_printEntries_rss(&$entries, $version, $comments = false, $f $entry['author'] .= ' - ' . $entry['ctitle']; } $entry['title'] = (!empty($entry['author']) ? $entry['author'] : ANONYMOUS) . ': ' . $entry['title']; + + // No HTML allowed here: + $entry['body'] = strip_tags($entry['body']); } // Embed a link to extended entry, if existing