mirror of https://gitlab.com/bashrc2/epicyon
Use list
parent
c482804b97
commit
4fcc1446c0
2
utils.py
2
utils.py
|
|
@ -4132,7 +4132,7 @@ def check_bad_path(path: str):
|
||||||
if '/.' in path_lower:
|
if '/.' in path_lower:
|
||||||
good_starts = ('/.well-known/', '/users/.well-known/')
|
good_starts = ('/.well-known/', '/users/.well-known/')
|
||||||
if string_starts_with(path_lower, good_starts):
|
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-'):
|
if path_lower.startswith('/wp-'):
|
||||||
return True
|
return True
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue