From 79d640f3a9280e9f23f108c21790348d473b2628 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 22 Oct 2016 19:53:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Route=E7=B1=BBname=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/think/Route.php b/library/think/Route.php index 5553a0fb..29116167 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -150,6 +150,7 @@ class Route } elseif (!is_null($value)) { self::$rules['name'][$name][] = $value; } else { + $name = strtolower($name); return isset(self::$rules['name'][$name]) ? self::$rules['name'][$name] : null; } }