]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Site Notice: common_purify instead of HTMLPurifier
authorChimo <chimo@chromic.org>
Wed, 1 Jun 2016 03:54:28 +0000 (03:54 +0000)
committerChimo <chimo@chromic.org>
Wed, 1 Jun 2016 03:54:28 +0000 (03:54 +0000)
So that we can use our custom settings (e.g: extra URI schemes) in the
site notice textbox.

Ref. #170

actions/sitenoticeadminpanel.php

index 72c9f9a1289486fde08783bc69e4e52c116d7250..a0a8b03b64ed7c77a830afe99cfeafea25e7356c 100644 (file)
@@ -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);
     }
 }