From 4cd6043c2ac551d5f898a06bbe9e07ac8cc82ec8 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 1 Feb 2016 23:30:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Url=E7=B1=BB=E4=B8=80?= =?UTF-8?q?=E5=A4=84=E8=AD=A6=E5=91=8A=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Url.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/think/Url.php b/library/think/Url.php index fd7e9c21..89dbcd8f 100644 --- a/library/think/Url.php +++ b/library/think/Url.php @@ -251,6 +251,8 @@ class Url $route = $route[0]; if (is_array($route)) { $route = implode('\\', $route); + } elseif ($route instanceof \Closure) { + continue; } elseif (strpos($route, '?')) { $route = strstr($route, '?', true); } @@ -261,6 +263,8 @@ class Url $route = $val['route']; if (is_array($route)) { $route = implode('\\', $route); + } elseif ($route instanceof \Closure) { + continue; } elseif (strpos($route, '?')) { $route = strstr($route, '?', true); }