mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 13:26:01 +03:00
Adds a test case for WEBSERVER_ERROR_LOG
WEBSERVER_ERROR_LOG is not supported by libmodsecurity. This test case confirms the parser error that says so.
This commit is contained in:
parent
833089eb70
commit
4daf9d8ab0
14
test/test-cases/regression/variable-WEBSERVER_ERROR_LOG.json
Normal file
14
test/test-cases/regression/variable-WEBSERVER_ERROR_LOG.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"enabled":1,
|
||||
"version_min":300000,
|
||||
"version_max":0,
|
||||
"title":"Testing Variables :: WEBSERVER_ERROR_LOG (1/1)",
|
||||
"expected":{
|
||||
"parser_error":"Line: 1. Column: 27. Variable VARIABLE_WEBSERVER_ERROR_LOG is not supported by libModSecurity"
|
||||
},
|
||||
"rules":[
|
||||
"secrule WEBSERVER_ERROR_LOG \"@contains test\" \"id:1,t:lowercase,t:none,msg:'This is a test, %{REQUEST_HEADERS:Accept}%'\""
|
||||
]
|
||||
}
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user