From dec496e20afbcfba5abe6e0f891d8824b60a6083 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 25 Jul 2016 11:17:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BRoute=E7=B1=BB=E7=9A=84checkR?= =?UTF-8?q?oute=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/think/Route.php b/library/think/Route.php index 00758aae..60dbba5c 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -735,6 +735,9 @@ class Route if (true === $item) { $item = self::$rules['*'][$key]; } + if (!isset($item['rule'])) { + continue; + } $rule = $item['rule']; $route = $item['route']; $vars = $item['var'];