From 4b4a660ba9120137f26aa2d2638ac84445125bd0 Mon Sep 17 00:00:00 2001 From: cutephp <253407587@qq.com> Date: Wed, 14 Mar 2018 15:38:20 +0800 Subject: [PATCH] modify:application/common/libraryAuth.php bugfix:figure out the match method cant not resolve $arr to lower --- application/common/library/Auth.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/common/library/Auth.php b/application/common/library/Auth.php index 8ab8199e..e3806bf9 100644 --- a/application/common/library/Auth.php +++ b/application/common/library/Auth.php @@ -539,6 +539,10 @@ class Auth { return FALSE; } + //对不需要登录的数组进行小写转换 + foreach ($arr as $k => &$v) { + $v = strtolower($v); + } // 是否存在 if (in_array(strtolower($request->action()), $arr) || in_array('*', $arr)) {