Skip to content

Commit

Permalink
fixes issue #615
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekultek committed Nov 30, 2019
1 parent 8b27329 commit 477015b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/plugins/modsecurity.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ def detect(content, **kwargs):
content = str(content)
detection_schema = (
re.compile(r"ModSecurity|NYOB", re.I),
re.compile(r"mod.security", re.I),
re.compile(r"mod_security", re.I),
re.compile(r"This.error.was.generated.by.mod.security", re.I),
re.compile(r"web.server at", re.I),
re.compile(r"page.you.are.(accessing|trying)?.(to|is)?.(access)?.(is|to)?.(restricted)?", re.I)
)
for detection in detection_schema:
if detection.search(content) is not None:
return True
return True

0 comments on commit 477015b

Please sign in to comment.