From 9127e17b2e9b8f169b2cd23608ad622278514316 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Mon, 2 Aug 2021 10:27:23 +0900 Subject: [PATCH] Fix #1761 don't filter target="_self" in HTMLPurifier --- common/framework/filters/htmlfilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/framework/filters/htmlfilter.php b/common/framework/filters/htmlfilter.php index 4f207bb50..e79d02709 100644 --- a/common/framework/filters/htmlfilter.php +++ b/common/framework/filters/htmlfilter.php @@ -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_');