mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
parser: SecRequestBodyInMemoryLimit is now returning an error msg
This commit is contained in:
parent
2cf636cf76
commit
81879cd131
@ -451,7 +451,6 @@ class RulesProperties {
|
||||
ConfigBoolean m_secXMLExternalEntity;
|
||||
ConfigBoolean m_tmpSaveUploadedFiles;
|
||||
ConfigBoolean m_uploadKeepFiles;
|
||||
ConfigDouble m_requestBodyInMemoryLimit;
|
||||
ConfigDouble m_requestBodyLimit;
|
||||
ConfigDouble m_requestBodyNoFilesLimit;
|
||||
ConfigDouble m_responseBodyLimit;
|
||||
|
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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user