From b7c557f44e81d212cc7086a265adad32b9195993 Mon Sep 17 00:00:00 2001 From: kkigomi <112419763+kkigomi@users.noreply.github.com> Date: Tue, 2 Jan 2024 10:17:41 +0900 Subject: [PATCH] =?UTF-8?q?#297=20=EB=B3=B4=EC=95=88=EC=B7=A8=EC=95=BD?= =?UTF-8?q?=EC=A0=90=20=EC=B2=98=EB=A6=AC=20=EB=B3=B4=EC=99=84=20(#300)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/htmlpurifier/extend.video.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/htmlpurifier/extend.video.php b/plugin/htmlpurifier/extend.video.php index a18cc7d45..81b4aea0e 100644 --- a/plugin/htmlpurifier/extend.video.php +++ b/plugin/htmlpurifier/extend.video.php @@ -61,9 +61,9 @@ if( !class_exists('HTMLPurifier_Filter_Iframevideo') ){ protected function postFilterCallback($matches) { // Domain Whitelist - $youTubeMatch = preg_match('#src="https?://www.youtube(-nocookie)?.com/#i', $matches[1]); - $vimeoMatch = preg_match('#src="https?://player.vimeo.com/#i', $matches[1]); - $fackbookMatch = preg_match('#src="https?://www.facebook.com/#i', $matches[1]); + $youTubeMatch = preg_match('#src="https?://www\.youtube(-nocookie)?\.com/#i', $matches[1]); + $vimeoMatch = preg_match('#src="https?://player\.vimeo\.com/#i', $matches[1]); + $fackbookMatch = preg_match('#src="https?://www\.facebook\.com/#i', $matches[1]); if ($youTubeMatch || $vimeoMatch || $fackbookMatch) { $extra = ' frameborder="0"'; if ($youTubeMatch || $fackbookMatch) {