Remove bad path test

main
bashrc 2026-04-26 17:30:12 +01:00
parent 499d92242b
commit 3ef05009cd
1 changed files with 0 additions and 5 deletions

View File

@ -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/',