mirror of https://gitlab.com/bashrc2/epicyon
More bad paths
parent
6961f0f327
commit
f366e4ac22
12
utils.py
12
utils.py
|
|
@ -4005,13 +4005,11 @@ def check_bad_path(path: str):
|
||||||
print('WARN: this is not wordpress ' + path)
|
print('WARN: this is not wordpress ' + path)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if path_lower.endswith('.js') or \
|
bad_endings = (
|
||||||
path_lower.endswith('.py') or \
|
'.js', '.ts', '.py', '.php', '.bak', '.env', '.local', '.yml',
|
||||||
path_lower.endswith('.php') or \
|
'.rs', '.ru'
|
||||||
path_lower.endswith('.bak') or \
|
)
|
||||||
path_lower.endswith('.env') or \
|
if string_ends_with(path_lower, bad_endings):
|
||||||
path_lower.endswith('.local') or \
|
|
||||||
path_lower.endswith('.yml'):
|
|
||||||
print('WARN: bad path ' + path)
|
print('WARN: bad path ' + path)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue