summaryrefslogtreecommitdiff
path: root/modules/comment/views/comment.mrss.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-07-04 08:17:12 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-07-04 08:17:12 -0700
commitd6648c0affd122407b7567442aa924e9138104e7 (patch)
tree015f10205d96618edcf210ad93c672a74956d979 /modules/comment/views/comment.mrss.php
parent54ffea24196e8f5d88cf9d8607455f0f6aab305c (diff)
Fix for ticket #477. Use nl2br method when rendering comment::text and
item::description. In addition add p::clean or p::purify to places that xss cleaning had missed (i.e. rss feeds)
Diffstat (limited to 'modules/comment/views/comment.mrss.php')
-rw-r--r--modules/comment/views/comment.mrss.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/views/comment.mrss.php b/modules/comment/views/comment.mrss.php
index 4f520144..e27bc44f 100644
--- a/modules/comment/views/comment.mrss.php
+++ b/modules/comment/views/comment.mrss.php
@@ -22,14 +22,14 @@
<lastBuildDate><?= $pub_date ?></lastBuildDate>
<? foreach ($feed->children as $child): ?>
<item>
- <title><?= p::clean($child->title) ?></title>
+ <title><?= p::purify($child->title) ?></title>
<link><?= p::clean($child->item_uri) ?></link>
<author><?= p::clean($child->author) ?></author>
<guid isPermaLink="true"><?= $child->item_uri ?></guid>
<pubDate><?= $child->pub_date ?></pubDate>
<content:encoded>
<![CDATA[
- <p><?= p::clean($child->text) ?></p>
+ <p><?= nl2br(p::purify($child->text)) ?></p>
<p>
<img alt="" src="<?= $child->thumb_url ?>"
height="<?= $child->thumb_height ?>" width="<?= $child->thumb_width ?>" />