More generic wordpress path

main
bashrc 2026-01-13 10:13:40 +00:00
parent b62ebad9d1
commit fbdd9a301b
1 changed files with 1 additions and 1 deletions

View File

@ -3975,7 +3975,7 @@ def check_bad_path(path: str):
path_lower.startswith('/users/.well-known/'):
bad_strings = ('..', '%2e%2e', '%252e%252e')
if path_lower.startswith('/wp-content'):
if path_lower.startswith('/wp-'):
print('WARN: this is not wordpress ' + path)
return True