]> git.mjollnir.org Git - s9y.git/commitdiff
Strip tags from comments also in RSS-Feeds for comments, thanks to
authorgarvinhicking <garvinhicking>
Wed, 11 Apr 2007 10:17:10 +0000 (10:17 +0000)
committergarvinhicking <garvinhicking>
Wed, 11 Apr 2007 10:17:10 +0000 (10:17 +0000)
tmix from the forums (garvinhicking)

docs/NEWS
include/functions_rss.inc.php

index ee0cd8fea5b20c437b29391635de6f55addf801f..c1a0a1d7deaadcf4298f7041b6ae3e78350fbc83 100644 (file)
--- 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
 
index 451b2c7b9852680e8eb0036bab749e520c01fa29..c5337a9bb7748a71269bcfa56f756fd34d1dc7df 100644 (file)
@@ -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