From 3745531d6feff683709a5879a9eb376cd30a9854 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 6 Jul 2016 12:37:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= 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 8061fcd0..dc48ae5c 100644 --- a/library/think/Url.php +++ b/library/think/Url.php @@ -143,7 +143,7 @@ class Url $url = $module . $controller . '/' . $request->action(); } else { $path = explode('/', $url); - $action = Config::get('url_convert') ? Loader::parseName(array_pop($path)) : array_pop($path); + $action = Config::get('url_convert') ? strtolower(array_pop($path)) : array_pop($path); $controller = empty($path) ? $controller : (Config::get('url_convert') ? Loader::parseName(array_pop($path)) : array_pop($path)); $module = empty($path) ? $module : array_pop($path) . '/'; $url = $module . $controller . '/' . $action;