mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 15:22:15 +09:00
Disallow classes in user-submitted content
This commit is contained in:
parent
5e5c2d918a
commit
e9bfb0e298
2 changed files with 4 additions and 3 deletions
|
|
@ -104,6 +104,7 @@ class HTMLFilter
|
|||
$config = \HTMLPurifier_Config::createDefault();
|
||||
|
||||
// Customize the default configuration.
|
||||
$config->set('Attr.AllowedClasses', array());
|
||||
$config->set('Attr.AllowedFrameTargets', array('_blank'));
|
||||
$config->set('Attr.DefaultImageAlt', '');
|
||||
$config->set('Attr.EnableID', true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue