mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Now accept SecRules regardless of the letter case
This commit is contained in:
20
test/test-cases/regression/misc.json
Normal file
20
test/test-cases/regression/misc.json
Normal file
@@ -0,0 +1,20 @@
|
||||
[
|
||||
{
|
||||
"enabled":1,
|
||||
"version_min":300000,
|
||||
"version_max":0,
|
||||
"title":"Testing action :: SecRule directives should be case insensitive",
|
||||
"expected":{
|
||||
"audit_log":"",
|
||||
"debug_log":"Executing operator \"@contains \" with param \"PHPSESSID\" against REQUEST_HEADERS.",
|
||||
"error_log":""
|
||||
},
|
||||
"rules":[
|
||||
"secruleengine On",
|
||||
"secdebuglog \/tmp\/modsec_debug.log",
|
||||
"secdebugloglevel 9",
|
||||
"secrule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:1,t:lowercase,t:none,msg:'This is a test, %{REQUEST_HEADERS:Accept}%'\"",
|
||||
"secrule TX \"@contains to_test\" \"id:2,t:lowercase,t:none\""
|
||||
]
|
||||
}
|
||||
]
|
Reference in New Issue
Block a user