mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Refactoring: how to report to error logs
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
"version_min":300000,
|
||||
"title":"Testing Disruptive actions (3/n)",
|
||||
"expected":{
|
||||
"debug_log": "Running action block",
|
||||
"debug_log": "Running .disruptive. action: block",
|
||||
"http_code":404
|
||||
},
|
||||
"rules":[
|
||||
|
@@ -34,14 +34,14 @@
|
||||
"version_min":300000,
|
||||
"title":"Testing Disruptive actions (3/n)",
|
||||
"expected":{
|
||||
"debug_log": "_Not_ running action: deny. Rule _does not_contains a disruptive action, but SecRuleEngine is not On.",
|
||||
"debug_log": "_Not_ running .disruptive. action: block. SecRuleEngine is not On",
|
||||
"http_code":200
|
||||
},
|
||||
"rules":[
|
||||
"SecRuleEngine On",
|
||||
"SecRuleEngine DetectionOnly",
|
||||
"SecDefaultAction \"phase:2,deny,status:404\"",
|
||||
"SecAction \"id:'1',phase:request,nolog,block,t:none\""
|
||||
"SecAction \"id:'1',phase:request,nolog,nolog,block,t:none\""
|
||||
]
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user