From 07a197f7b6f7c0f45ae168872998a75d3b310c2c Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 29 Oct 2020 11:09:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8E=E5=8F=B0=E5=85=A5?= =?UTF-8?q?=E5=8F=A3=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 请先更新 ThinkLibrary 再更新 Admin 模块 --- app/admin/controller/Config.php | 2 +- app/admin/view/config/system.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/admin/controller/Config.php b/app/admin/controller/Config.php index 4abc8eb8f..f91d0e90b 100644 --- a/app/admin/controller/Config.php +++ b/app/admin/controller/Config.php @@ -65,7 +65,7 @@ class Config extends Controller $this->fetch(); } else { if ($xpath = $this->request->post('xpath')) { - if (!preg_match('/^[a-zA-Z_][a-zA-Z0-9_]+$/', $xpath)) { + if (!preg_match('/^[a-zA-Z_][a-zA-Z0-9_]*$/', $xpath)) { $this->error('后台入口名称需要是由英文字母开头!'); } if ($xpath !== 'admin' && file_exists($this->app->getBasePath() . $xpath)) { diff --git a/app/admin/view/config/system.html b/app/admin/view/config/system.html index acd0696ad..4f79deb8b 100644 --- a/app/admin/view/config/system.html +++ b/app/admin/view/config/system.html @@ -5,7 +5,7 @@ Login 名称由英文字母开头且不能存在相同名称的应用,设置之后原地址不能继续访问!