From ac1d208534c6cffcbd958610fb773ef3a4967b0f Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 20 Sep 2017 14:58:47 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=AD=A3=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E5=87=BA=E7=8E=B0=E4=B8=8B=E5=88=92=E7=BA=BF=E6=97=B6?= =?UTF-8?q?=E7=9A=84bug=20#50?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/admin/controller/Index.php b/application/admin/controller/Index.php index d490a2b50..65484ba9f 100644 --- a/application/admin/controller/Index.php +++ b/application/admin/controller/Index.php @@ -63,7 +63,7 @@ class Index extends BasicAdmin continue; // 菜单链接不为空时,判断登录状态及权限验证 elseif ($menu['url'] !== '#') : - $node = join('/', array_slice(explode('/', preg_replace('/[\W^_]/', '/', $menu['url'])), 0, 3)); + $node = join('/', array_slice(explode('/', preg_replace('/[\W]/', '/', $menu['url'])), 0, 3)); $menu['url'] = url($menu['url']); // 节点需要验证验证,未登录时移除此菜单 if (isset($nodes[$node]) && $nodes[$node]['is_login'] && !session('user')) :