From 347827015a2ec1028bceedafacae2dde34502f05 Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Thu, 21 Sep 2023 16:41:30 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A8=8B=E5=BA=8F=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E3=80=91=E6=9B=B4=E6=96=B05.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/Request.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crmeb/app/Request.php b/crmeb/app/Request.php index 5d267d925..e139768af 100644 --- a/crmeb/app/Request.php +++ b/crmeb/app/Request.php @@ -118,7 +118,8 @@ class Request extends \think\Request { if (parse_url($str, PHP_URL_HOST)) { $url = parse_url($str); - $str = $url['scheme'] . '://' . $url['host'] . preg_replace($farr, '', $url['path']); + $host = $url['scheme'] . '://' . $url['host']; + $str = $host . preg_replace($farr, '', preg_replace($host, '', $str)); } else { $str = preg_replace($farr, '', $str); }