From 45bf3e46b02853107415855ef406640569076fde Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 18 Feb 2016 12:18:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BURL=E7=94=9F=E6=88=90=20?= =?UTF-8?q?=E6=A0=B9=E7=9B=AE=E5=BD=95=E8=AE=BF=E9=97=AE=E4=B8=8D=E7=94=9F?= =?UTF-8?q?=E6=88=90url=E5=90=8E=E7=BC=80?= 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 834ca630..a1e86d92 100644 --- a/library/think/Url.php +++ b/library/think/Url.php @@ -81,7 +81,7 @@ class Url $url = str_replace('/', $depr, $url); // URL后缀 - $suffix = self::parseSuffix($suffix); + $suffix = ('/' == $url) ? '' : self::parseSuffix($suffix); // 锚点 $anchor = !empty($anchor) ? '#' . $anchor : ''; // 参数组装