From b6e5bf6eaade677187f99182e7face7c4b711bec Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 3 Jul 2009 12:56:29 -0700 Subject: Fix for ticket #400: Add HTMLPurifier to gallery3 and change p::clean() to call HTMLPurifier->purify() --- modules/gallery/helpers/p.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/gallery/helpers') diff --git a/modules/gallery/helpers/p.php b/modules/gallery/helpers/p.php index 0a6210dc..527467f6 100644 --- a/modules/gallery/helpers/p.php +++ b/modules/gallery/helpers/p.php @@ -19,6 +19,6 @@ */ class p_Core { static function clean($dirty_html) { - return html::specialchars($dirty_html); + return GalleryHtmlPurifier::instance()->purify($dirty_html); } } -- cgit v1.2.3