From 54ffea24196e8f5d88cf9d8607455f0f6aab305c Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 3 Jul 2009 21:44:10 -0700 Subject: Split the clean method into two clean and purify. clean is a light weight approach using html::specialchars and purify uses HTMLPurifier to intelligently cleanse the output fields. Use purifier for text and title fields where it is likely that a user would enter html to format their data. --- modules/notification/views/comment_published.html.php | 2 +- modules/notification/views/item_added.html.php | 4 ++-- modules/notification/views/item_deleted.html.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/notification') diff --git a/modules/notification/views/comment_published.html.php b/modules/notification/views/comment_published.html.php index ff2ba0bc..70709979 100644 --- a/modules/notification/views/comment_published.html.php +++ b/modules/notification/views/comment_published.html.php @@ -8,7 +8,7 @@ - + diff --git a/modules/notification/views/item_added.html.php b/modules/notification/views/item_added.html.php index 32857c08..4fa5d42d 100644 --- a/modules/notification/views/item_added.html.php +++ b/modules/notification/views/item_added.html.php @@ -8,7 +8,7 @@
text) ?>text) ?>
- + @@ -21,7 +21,7 @@ description): ?> - +
title) ?>title) ?>
description) ?>description) ?>
diff --git a/modules/notification/views/item_deleted.html.php b/modules/notification/views/item_deleted.html.php index 2d6d5738..92215211 100644 --- a/modules/notification/views/item_deleted.html.php +++ b/modules/notification/views/item_deleted.html.php @@ -9,7 +9,7 @@ p::clean($item->parent()->title))) ?> + array("title" => p::purify($item->parent()->title))) ?> -- cgit v1.2.3