From e98d5d0c0cee37acae440c15b3ea62ba036d4c82 Mon Sep 17 00:00:00 2001 From: Chimo Date: Wed, 1 Jun 2016 03:54:28 +0000 Subject: [PATCH] Site Notice: common_purify instead of HTMLPurifier So that we can use our custom settings (e.g: extra URI schemes) in the site notice textbox. Ref. #170 --- actions/sitenoticeadminpanel.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/actions/sitenoticeadminpanel.php b/actions/sitenoticeadminpanel.php index 72c9f9a128..a0a8b03b64 100644 --- a/actions/sitenoticeadminpanel.php +++ b/actions/sitenoticeadminpanel.php @@ -110,9 +110,7 @@ class SitenoticeadminpanelAction extends AdminPanelAction } // scrub HTML input - require_once INSTALLDIR.'/extlib/HTMLPurifier/HTMLPurifier.auto.php'; - $purifier = new HTMLPurifier(); - $siteNotice = $purifier->purify($siteNotice); + $siteNotice = common_purify($siteNotice); } } -- 2.39.5