forked from Github/frigate
Update flask and restructure into api folder with apis put into separate folders (#10193)
* Update flask * Update flask and break apart different sections into different files * formatting * Fix test and add safety check
This commit is contained in:
@@ -122,6 +122,9 @@ def clean_camera_user_pass(line: str) -> str:
|
||||
|
||||
def escape_special_characters(path: str) -> str:
|
||||
"""Cleans reserved characters to encodings for ffmpeg."""
|
||||
if len(path) > 1000:
|
||||
return ValueError("Input too long to check")
|
||||
|
||||
try:
|
||||
found = re.search(REGEX_RTSP_CAMERA_USER_PASS, path).group(0)[3:-1]
|
||||
pw = found[(found.index(":") + 1) :]
|
||||
|
||||
Reference in New Issue
Block a user