diff --git a/utils.py b/utils.py index 7a5499074..5ac0ca0f1 100644 --- a/utils.py +++ b/utils.py @@ -3967,7 +3967,8 @@ def check_bad_path(path: str): """ path_lower = path.lower() - bad_strings = ('..', '/.', '%2e%2e', '%252e%252e') + bad_strings = ('..', '/.', '%2e%2e', '%252e%252e', + '/sftp.', '/sftp-') # allow /.well-known/... if '/.' in path_lower: