mirror of https://gitlab.com/bashrc2/epicyon
Remove bad path test
parent
499d92242b
commit
3ef05009cd
5
utils.py
5
utils.py
|
|
@ -4144,11 +4144,6 @@ def check_bad_path(path: str):
|
|||
"""
|
||||
path_lower = path.lower()
|
||||
|
||||
if '%' in path:
|
||||
sections = path.split('%')
|
||||
if len(sections) > 2:
|
||||
return True
|
||||
|
||||
bad_strings = [
|
||||
'..', '/.', '%2e%2e', '%252e%252e', '/sftp.', '/sftp-', '/statistics',
|
||||
'/config/', 'settings.', 'credentials', '/packs/', '/backend/',
|
||||
|
|
|
|||
Loading…
Reference in New Issue