modify:application/common/libraryAuth.php

bugfix:figure out the match method cant not resolve $arr to lower
pull/50/head
cutephp 2018-03-14 15:38:20 +08:00
parent 8e5b42f88c
commit 4b4a660ba9
1 changed files with 4 additions and 0 deletions

View File

@ -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))
{