mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Changes MATCHED_VAR behaviour
Only cleanup the variable if there wasn't a match within the rule
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
"SecDebugLog \/tmp\/modsec_debug.log",
|
||||
"SecDebugLogLevel 9",
|
||||
"SecRule ARGS:key \"@contains other_value\" \"id:1,phase:request,chain\"",
|
||||
"SecRule MATCHED_VAR \"@eq asdf\" \"phase:request,pass\""
|
||||
"SecRule MATCHED_VAR \"@contains asdf\" \"phase:request,pass\""
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -80,7 +80,7 @@
|
||||
"SecDebugLog \/tmp\/modsec_debug.log",
|
||||
"SecDebugLogLevel 9",
|
||||
"SecRule ARGS:key \"@contains other_value\" \"chain,phase:response,id:28\"",
|
||||
"SecRule MATCHED_VAR \"@eq Aasdf\" \"pass\"",
|
||||
"SecRule MATCHED_VAR \"@contains Aasdf\" \"pass\"",
|
||||
"SecRule MATCHED_VAR \"@contains other_value\" \"id:29,phase:response,pass\"",
|
||||
"SecRule MATCHED_VAR \"@contains other_value\" \"id:30,phase:response,pass\""
|
||||
]
|
||||
|
Reference in New Issue
Block a user