mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-16 11:54:44 -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:
@@ -8,7 +8,7 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td><?= t("Comment:") ?></td>
|
||||
<td><?= p::purify($comment->text) ?></td>
|
||||
<td><?= nl2br(p::purify($comment->text)) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?= t("Author Name:") ?></td>
|
||||
|
||||
Reference in New Issue
Block a user