mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
parser: arbitraty text can be used instead of operator
The usage of an arbitrary text instead operator was expecting that the arbitrary text start by something different from "@" or "!", now it can start with anything, including "@", and/or "!". Notice however that there aren't such thing as a bad operator. Bad operator will be used as input of @rx. Issue #1136.
This commit is contained in:
@@ -44,21 +44,6 @@
|
||||
"SecRule ARGS \"@contains test\" \"id:19,pass,t:trim\""
|
||||
]
|
||||
},
|
||||
{
|
||||
"enabled":1,
|
||||
"version_min":300000,
|
||||
"title":"Include - bad operator inside include",
|
||||
"expected":{
|
||||
"parser_error": "Rules error. File: test-cases/data/config_example-bad-op-include.txt. Line: 2. Column: 67. .*"
|
||||
},
|
||||
"rules":[
|
||||
"SecRuleEngine On",
|
||||
"SecDebugLog \/tmp\/modsec_debug.log",
|
||||
"SecDebugLogLevel 9",
|
||||
"Include test-cases/data/config_example-bad-op-include.txt",
|
||||
"SecRule ARGS \"@contains test\" \"id:19,pass,t:trim\""
|
||||
]
|
||||
},
|
||||
{
|
||||
"enabled":1,
|
||||
"version_min":300000,
|
||||
|
Reference in New Issue
Block a user