mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
parser: SecRequestBodyInMemoryLimit is now returning an error msg
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1370,8 +1370,12 @@ expression:
|
||||
}
|
||||
| CONFIG_DIR_REQ_BODY_IN_MEMORY_LIMIT
|
||||
{
|
||||
driver.m_requestBodyInMemoryLimit.m_set = true;
|
||||
driver.m_requestBodyInMemoryLimit.m_value = atoi($1.c_str());
|
||||
std::stringstream ss;
|
||||
ss << "As of ModSecurity version 3.0, SecRequestBodyInMemoryLimit is no longer ";
|
||||
ss << "supported. Instead, you can use your web server configurations to control ";
|
||||
ss << "those values. ModSecurity will follow the web server decision.";
|
||||
driver.error(@0, ss.str());
|
||||
YYERROR;
|
||||
}
|
||||
| CONFIG_DIR_RES_BODY_LIMIT
|
||||
{
|
||||
|
Reference in New Issue
Block a user