diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-04 08:17:12 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-04 08:17:12 -0700 |
commit | d6648c0affd122407b7567442aa924e9138104e7 (patch) | |
tree | 015f10205d96618edcf210ad93c672a74956d979 /modules/notification | |
parent | 54ffea24196e8f5d88cf9d8607455f0f6aab305c (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/notification')
-rw-r--r-- | modules/notification/views/comment_published.html.php | 2 | ||||
-rw-r--r-- | modules/notification/views/item_added.html.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/notification/views/comment_published.html.php b/modules/notification/views/comment_published.html.php index 70709979..4a56cdad 100644 --- a/modules/notification/views/comment_published.html.php +++ b/modules/notification/views/comment_published.html.php @@ -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> diff --git a/modules/notification/views/item_added.html.php b/modules/notification/views/item_added.html.php index 4fa5d42d..87ea90fa 100644 --- a/modules/notification/views/item_added.html.php +++ b/modules/notification/views/item_added.html.php @@ -21,7 +21,7 @@ <? if ($item->description): ?> <tr> <td><?= t("Description:") ?></td> - <td><?= p::purify($item->description) ?></td> + <td><?= nl2br(p::purify($item->description)) ?></td> </tr> <? endif ?> </table> |