From 1a23e337e803ec8595864d722b68e21f8ac6dcdf Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 4 Nov 2016 16:04:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=A0=E4=B8=BA=E5=8E=9F=E6=9D=A5=E7=94=A8?= =?UTF-8?q?=E6=B3=95=E4=BC=9A=E5=AF=BC=E8=87=B4=E8=B7=AF=E7=94=B1=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E8=AF=BB=E5=8F=96=E9=A1=BA=E5=BA=8F=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E8=B7=AF=E7=94=B1=E5=8F=AF=E9=80=89=E5=88=86=E9=9A=94?= =?UTF-8?q?=E7=AC=A6=E7=9A=84=E7=94=A8=E6=B3=95=20=E5=8E=9F=E6=9D=A5?= =?UTF-8?q?=E7=9A=84=20hello/(-=3F)=20=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=EF=BC=9A=20hello/-=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Url.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Url.php b/library/think/Url.php index 642e48f1..d8730743 100644 --- a/library/think/Url.php +++ b/library/think/Url.php @@ -81,7 +81,7 @@ class Url // 匹配路由命名标识 $url = $match[0]; // 替换可选分隔符 - $url = preg_replace(['/\((\W)\?\)$/', '/\((\W)\?\)/'], ['', '\1'], $url); + $url = preg_replace(['/(\W)\?$/', '/(\W)\?/'], ['', '\1'], $url); if (!empty($match[1])) { $domain = $match[1]; }