Clean http password, clean path in debug config as well (#4519)

* Clean ffmpeg paths

* Clean http passwords too

* Make check optional
This commit is contained in:
Nicolas Mowen
2022-11-26 18:18:33 -07:00
committed by GitHub
parent 047c2408d2
commit 68248cc274
3 changed files with 14 additions and 6 deletions

View File

@@ -9,4 +9,5 @@ PLUS_API_HOST = "https://api.frigate.video"
# Regex Consts
REGEX_CAMERA_NAME = "^[a-zA-Z0-9_-]+$"
REGEX_CAMERA_USER_PASS = ":\/\/[a-zA-Z0-9_-]+:[\S]+@"
REGEX_RTSP_CAMERA_USER_PASS = ":\/\/[a-zA-Z0-9_-]+:[\S]+@"
REGEX_HTTP_CAMERA_USER_PASS = "user=[a-zA-Z0-9_-]+&password=[\S]+"