mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Fix ModSecurity CRS version search regex in tests
This commit is contained in:
parent
6b476b1e3f
commit
6b63980c8b
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ try:
|
|||
else:
|
||||
with open("/var/log/bunkerweb/error.log", "r") as f:
|
||||
for line in f.readlines():
|
||||
if search(f'[ver "OWASP_CRS/{modsecurity_crs_version}', line):
|
||||
if search(r'\[ver "OWASP_CRS/' + modsecurity_crs_version, line):
|
||||
found = True
|
||||
break
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue