mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Update ConfigFiles to use the correct name regex in web UI
This commit is contained in:
parent
b265cbad54
commit
ca6938dfe4
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ def generate_custom_configs(
|
|||
|
||||
class ConfigFiles:
|
||||
def __init__(self, logger, db):
|
||||
self.__name_regex = re_compile(r"^[\w.-]{1,64}$")
|
||||
self.__name_regex = re_compile(r"^[\w.-]{4,64}$")
|
||||
self.__root_dirs = [child["name"] for child in path_to_dict(join(sep, "etc", "bunkerweb", "configs"))["children"]]
|
||||
self.__file_creation_blacklist = ["http", "stream"]
|
||||
self.__logger = logger
|
||||
|
|
|
|||
Loading…
Reference in a new issue