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)) {