mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -866,7 +866,7 @@ def addDb():
|
||||
if listen_ip not in ["127.0.0.1/32", "localhost", "127.0.0.1"]:
|
||||
sedConf("listen_addresses", "'*'")
|
||||
|
||||
reg = "^[\w\.-]+$"
|
||||
reg = r"^[\w\.-]+$"
|
||||
if not re.match(reg, dbname):
|
||||
return mw.returnJson(False, '数据库名称不能带有特殊符号!')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user