From 66039a4b37c1b7f51ac7dd282e96d112bb0db9fd Mon Sep 17 00:00:00 2001 From: thisgun Date: Fri, 20 Jan 2023 11:17:50 +0900 Subject: [PATCH] =?UTF-8?q?PHP8=20=EB=B2=84=EC=A0=84=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EA=B2=BD=EA=B3=A0=EB=AC=B8=EC=9D=B4=20=EB=82=98=EC=98=A4?= =?UTF-8?q?=EB=8A=94=20=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common.php | 1 + 1 file changed, 1 insertion(+) diff --git a/common.php b/common.php index 0d330d5cb..6e7efb984 100644 --- a/common.php +++ b/common.php @@ -502,6 +502,7 @@ if (isset($_REQUEST['url'])) { $urlencode = urlencode($_SERVER['REQUEST_URI']); if (G5_DOMAIN) { $p = @parse_url(G5_DOMAIN); + $p['path'] = isset($p['path']) ? $p['path'] : '/'; $urlencode = G5_DOMAIN.urldecode(preg_replace("/^".urlencode($p['path'])."/", "", $urlencode)); } }