From 4f2f725de8c9e87569391fe05075ba03c4dc625c Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 18 Dec 2023 12:39:55 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B3=B4=EC=95=88=EC=B7=A8=EC=95=BD=EC=A0=90?= =?UTF-8?q?=20=EC=88=98=EC=A0=95=20#297?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index 1d6223814..94a071945 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -655,7 +655,7 @@ function html_purifier($html) if ((function_exists('check_html_link_nofollow') && check_html_link_nofollow('html_purifier'))) { $config->set('HTML.Nofollow', true); // rel=nofollow 으로 스팸유입을 줄임 } - $config->set('URI.SafeIframeRegexp', '%^(https?:)?//(' . $safeiframe . ')%'); + $config->set('URI.SafeIframeRegexp', '%^(https?:)?//(' . preg_replace('/\\\?\./', '\.', $safeiframe) . ')%'); $config->set('Attr.AllowedFrameTargets', array('_blank')); //유튜브, 비메오 전체화면 가능하게 하기 $config->set('Filter.Custom', array(new HTMLPurifier_Filter_Iframevideo()));