* @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
if (!$result) {
// TRANS: Server error displayed when saving a site-wide notice was impossible.
- $this->ServerError(_("Unable to save site notice."));
+ $this->ServerError(_('Unable to save site notice.'));
}
}
}
// 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);
}
}
_m('BUTTON','Save'),
'submit',
null,
- // TRANS: Title for button to save site notice in admin panel.
- _('Save site notice')
+ // TRANS: Button title to save site notice in admin panel.
+ _('Save site notice.')
);
}
}