X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fsitenoticeadminpanel.php;h=a0a8b03b64ed7c77a830afe99cfeafea25e7356c;hb=9e89a177c76741f7e696f09d778bd8b151f84d3f;hp=145ae80d0766cbd7fd3d1ddaf71174e4b3e74a8b;hpb=8eac5d26387384a07c00fd0ffca1c10d5d7d82f2;p=quix0rs-gnu-social.git diff --git a/actions/sitenoticeadminpanel.php b/actions/sitenoticeadminpanel.php index 145ae80d07..a0a8b03b64 100644 --- a/actions/sitenoticeadminpanel.php +++ b/actions/sitenoticeadminpanel.php @@ -27,11 +27,7 @@ * @link http://status.net/ */ -if (!defined('STATUSNET')) { - exit(1); -} - -require_once INSTALLDIR.'/extlib/htmLawed/htmLawed.php'; +if (!defined('GNUSOCIAL')) { exit(1); } /** * Update the site-wide notice text @@ -114,13 +110,7 @@ class SitenoticeadminpanelAction extends AdminPanelAction } // scrub HTML input - - $config = array( - 'safe' => 1, - 'deny_attribute' => 'id,style,on*' - ); - - $siteNotice = htmLawed($siteNotice, $config); + $siteNotice = common_purify($siteNotice); } }