From: Chimo Date: Wed, 1 Jun 2016 03:54:28 +0000 (+0000) Subject: Site Notice: common_purify instead of HTMLPurifier X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e98d5d0c0cee37acae440c15b3ea62ba036d4c82;p=quix0rs-gnu-social.git 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 --- 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); } }