From 4fcc1446c0ee14046d3a3a154d4c480671a9caec Mon Sep 17 00:00:00 2001 From: bashrc Date: Tue, 21 Apr 2026 15:48:27 +0100 Subject: [PATCH] Use list --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 2b93ed39e..acdc690c1 100644 --- a/utils.py +++ b/utils.py @@ -4132,7 +4132,7 @@ def check_bad_path(path: str): if '/.' in path_lower: good_starts = ('/.well-known/', '/users/.well-known/') if string_starts_with(path_lower, good_starts): - bad_strings = ('..', '%2e%2e', '%252e%252e') + bad_strings = ['..', '%2e%2e', '%252e%252e'] if path_lower.startswith('/wp-'): return True