summaryrefslogtreecommitdiff
path: root/modules/comment/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-07-03 09:26:31 -0700
committerBharat Mediratta <bharat@menalto.com>2009-07-03 09:26:31 -0700
commit715d714ade637b6292bab378c4d7deb332542477 (patch)
tree5ef6af71c9ac21d557abca8f7895a85d2a20e929 /modules/comment/helpers
parentbd1b2f414741bb9bb68c8f94a291bedd5c9925c0 (diff)
parent0f9bfbdd572c44ab6b095e18f376c6d340f5fd26 (diff)
Merge branch 'master' of git@github.com:/gallery/gallery3
Diffstat (limited to 'modules/comment/helpers')
-rw-r--r--modules/comment/helpers/comment_rss.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/comment/helpers/comment_rss.php b/modules/comment/helpers/comment_rss.php
index 746c6161..ab3d2283 100644
--- a/modules/comment/helpers/comment_rss.php
+++ b/modules/comment/helpers/comment_rss.php
@@ -53,13 +53,13 @@ class comment_rss_Core {
$item = $comment->item();
$feed->children[] = new ArrayObject(
array("pub_date" => date("D, d M Y H:i:s T", $comment->created),
- "text" => $comment->text,
+ "text" => nl2br(p::purify($comment->text)),
"thumb_url" => $item->thumb_url(),
"thumb_height" => $item->thumb_height,
"thumb_width" => $item->thumb_width,
"item_uri" => url::abs_site("{$item->type}s/$item->id"),
- "title" => $item->title,
- "author" => $comment->author_name()),
+ "title" => p::purify($item->title),
+ "author" => p::clean($comment->author_name())),
ArrayObject::ARRAY_AS_PROPS);
}