mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-25 17:24:10 -04:00
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)
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<?= gallery::date_time($comment->created) ?>
|
||||
<?= t('<a href="#">%author_name</a> said <em>%comment_text</em>',
|
||||
array("author_name" => p::clean($comment->author_name()),
|
||||
"comment_text" => text::limit_words(p::purify($comment->text), 50))); ?>
|
||||
"comment_text" => text::limit_words(nl2br(p::purify($comment->text)), 50))); ?>
|
||||
</li>
|
||||
<? endforeach ?>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user