镜像自地址
https://github.com/binary-husky/gpt_academic.git
已同步 2025-12-06 22:46:48 +00:00
更好的检查子路径逻辑
这个提交包含在:
@@ -540,6 +540,9 @@ def custom_path_check(path: str)->bool:
|
|||||||
print("ilegal custom path: {}\npath must not be empty\ndeploy on root url".format(path))
|
print("ilegal custom path: {}\npath must not be empty\ndeploy on root url".format(path))
|
||||||
return False
|
return False
|
||||||
if path[0] == '/':
|
if path[0] == '/':
|
||||||
|
if len(path) == 1:
|
||||||
|
print("deploy on root url")
|
||||||
|
return False
|
||||||
if path[1] != '/':
|
if path[1] != '/':
|
||||||
print("deploy on sub-path {}".format(path))
|
print("deploy on sub-path {}".format(path))
|
||||||
return True
|
return True
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户