Fix #1761 don't filter target="_self" in HTMLPurifier

This commit is contained in:
Kijin Sung 2021-08-02 10:27:23 +09:00
parent aab7ab851e
commit 9127e17b2e

View file

@ -139,7 +139,7 @@ class HTMLFilter
// Customize the default configuration.
$config->set('Attr.AllowedClasses', $allowed_classes);
$config->set('Attr.AllowedFrameTargets', array('_blank'));
$config->set('Attr.AllowedFrameTargets', array('_blank', '_self'));
$config->set('Attr.DefaultImageAlt', '');
$config->set('Attr.EnableID', true);
$config->set('Attr.IDPrefix', 'user_content_');