mirror of https://gitlab.com/bashrc2/epicyon
Check file endings
parent
b3bdbca226
commit
5f1b7df5d0
9
utils.py
9
utils.py
|
|
@ -4003,6 +4003,15 @@ def check_bad_path(path: str):
|
|||
print('WARN: this is not wordpress ' + path)
|
||||
return True
|
||||
|
||||
if path_lower.endswith('.js') or \
|
||||
path_lower.endswith('.php') or \
|
||||
path_lower.endswith('.bak') or \
|
||||
path_lower.endswith('.env') or \
|
||||
path_lower.endswith('.local') or \
|
||||
path_lower.endswith('.yml'):
|
||||
print('WARN: bad path ' + path)
|
||||
return True
|
||||
|
||||
if string_contains(path_lower, bad_strings):
|
||||
print('WARN: bad path ' + path)
|
||||
return True
|
||||
|
|
|
|||
Loading…
Reference in New Issue