* @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
}
// scrub HTML input
-
- $config = array(
- 'safe' => 1,
- 'deny_attribute' => 'id,style,on*'
- );
-
- $siteNotice = htmLawed($siteNotice, $config);
+ require_once INSTALLDIR.'/extlib/HTMLPurifier/HTMLPurifier.auto.php';
+ $purifier = new HTMLPurifier();
+ $siteNotice = $purifier->purify($siteNotice);
}
}