From ca4205c89a2ea0bf18a4d3ae3d9dd1aaf23b72e7 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 30 Dec 2022 20:13:35 +0800 Subject: [PATCH] up --- plugins/mysql-apt/index.py | 2 +- plugins/mysql-yum/index.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mysql-apt/index.py b/plugins/mysql-apt/index.py index c9a3cfb39..49eab0e7f 100755 --- a/plugins/mysql-apt/index.py +++ b/plugins/mysql-apt/index.py @@ -1104,7 +1104,7 @@ def addDb(): dataAccess = args['dataAccess'].strip() ps = args['ps'].strip() - reg = "^[\w\.-]+$" + reg = "^[\w-]+$" if not re.match(reg, args['name']): return mw.returnJson(False, '数据库名称不能带有特殊符号!') checks = ['root', 'mysql', 'test', 'sys', 'panel_logs'] diff --git a/plugins/mysql-yum/index.py b/plugins/mysql-yum/index.py index 0a9754f3d..bf14c60c1 100755 --- a/plugins/mysql-yum/index.py +++ b/plugins/mysql-yum/index.py @@ -1079,7 +1079,7 @@ def addDb(): dataAccess = args['dataAccess'].strip() ps = args['ps'].strip() - reg = "^[\w\.-]+$" + reg = "^[\w-]+$" if not re.match(reg, args['name']): return mw.returnJson(False, '数据库名称不能带有特殊符号!') checks = ['root', 'mysql', 'test', 'sys', 'panel_logs']