From 529b8a1004fdbbee7f92309ff39b70cc14dc160d Mon Sep 17 00:00:00 2001 From: thisgun Date: Tue, 22 Nov 2022 17:24:58 +0900 Subject: [PATCH] =?UTF-8?q?html=5Fprocess=20=EC=97=90=EC=84=9C=20title=20l?= =?UTF-8?q?ink=20=ED=83=9C=EA=B7=B8=EA=B0=80=20=EC=97=86=EC=9D=84=EA=B2=BD?= =?UTF-8?q?=EC=9A=B0=20css=20=ED=8C=8C=EC=9D=BC=EC=9D=84=20=EB=A1=9C?= =?UTF-8?q?=EB=93=9C=20=EB=AA=BB=ED=95=98=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20#207?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index bcc75853c..106ae26c5 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -2685,7 +2685,12 @@ class html_process { 밑으로 스킨의 스타일시트가 위치하도록 하게 한다. */ - $buffer = preg_replace('#([^<]*]+>)#', "$1$stylesheet", $buffer); + $title_find_pattern = '#([^<]*]+>)#'; + if (preg_match($title_find_pattern, $buffer)) { + $buffer = preg_replace($title_find_pattern, "$1$stylesheet", $buffer); + } else { // 패턴이 없다면 자바스크립트 코드 위에 위치하게 합니다. + $javascript = $stylesheet. PHP_EOL. $javascript; + } /*