This commit is contained in:
midoks
2022-12-30 20:13:35 +08:00
parent c89b15a645
commit ca4205c89a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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']