From a8a903bfd4df2c5229f1e501efd65612f5bf8215 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 9 Feb 2017 11:59:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Burl=E7=94=9F=E6=88=90?= 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 520e664a..de3cd912 100644 --- a/library/think/Url.php +++ b/library/think/Url.php @@ -80,7 +80,7 @@ class Url if (!empty($match[1])) { $domain = $match[1]; } - if (!empty($match[2])) { + if (!is_null($match[2])) { $suffix = $match[2]; } } elseif (!empty($rule) && isset($name)) {