From 75f09e94e046196648e7421f8cfa32d7f444a8be Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 27 Jun 2016 17:08:38 +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, 2 insertions(+) diff --git a/library/think/Url.php b/library/think/Url.php index d531d231..774fc6e5 100644 --- a/library/think/Url.php +++ b/library/think/Url.php @@ -240,6 +240,8 @@ class Url } } $match = true; + } elseif (empty($pattern) && array_intersect_assoc($param, $array) == $param) { + $match = true; } if (!empty($param) && array_intersect_assoc($param, $array) != $param) { $match = false;