From 63837e22134c70c462a8e92f7a0d5162683bae64 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 27 Jun 2016 17:35:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BUrl=E7=B1=BB?= 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 774fc6e5..0a88bf7a 100644 --- a/library/think/Url.php +++ b/library/think/Url.php @@ -243,7 +243,7 @@ class Url } elseif (empty($pattern) && array_intersect_assoc($param, $array) == $param) { $match = true; } - if (!empty($param) && array_intersect_assoc($param, $array) != $param) { + if ($match && !empty($param) && array_intersect_assoc($param, $array) != $param) { $match = false; } if ($match) {