mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-19 10:44:25 +03:00
Adds new method for rule merge
IMPORTANT: SecDefaultAction specified on a child configuration will overwrite the ones specified on the parent; Previously it was concatenating.
This commit is contained in:
@@ -79,11 +79,12 @@
|
||||
},
|
||||
"expected":{
|
||||
"debug_log":"Executing operator \"Rx\" with param \"\\^0\\$\"",
|
||||
"error_log":"Matched \"Operator `Rx' with parameter `\\^0\\$'"
|
||||
"error_log":"Matched \"Operator `Rx' with parameter `\\^0\\$'",
|
||||
"http_code": 403
|
||||
},
|
||||
"rules":[
|
||||
"SecRuleEngine On",
|
||||
"SecRule REQUEST_HEADERS:Content-Length \"!^0$\" \"id:1,phase:2,pass,t:trim,block\""
|
||||
"SecRule REQUEST_HEADERS:Content-Length \"!^0$\" \"id:1,phase:2,pass,t:trim,deny\""
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user