mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +03:00
Debug log: enhance message for SecRequestBodyNoFilesLimit
This commit is contained in:
parent
ea80d31667
commit
3311dda0e5
@ -814,7 +814,8 @@ int Transaction::processRequestBody() {
|
||||
m_variableReqbodyError.set("1", 0);
|
||||
m_variableReqbodyErrorMsg.set("Request body excluding files is bigger than the maximum expected.", 0);
|
||||
m_variableInboundDataError.set("1", m_variableOffset);
|
||||
ms_dbg(5, "Request body excluding files is bigger than the maximum expected.");
|
||||
ms_dbg(5, "Request body excluding files is bigger than the maximum expected. Limit: " \
|
||||
+ std::to_string(m_rules->m_requestBodyNoFilesLimit.m_value));
|
||||
requestBodyNoFilesLimitExceeded = true;
|
||||
}
|
||||
}
|
||||
@ -901,7 +902,8 @@ int Transaction::processRequestBody() {
|
||||
m_variableReqbodyError.set("1", 0);
|
||||
m_variableReqbodyErrorMsg.set("Request body excluding files is bigger than the maximum expected.", 0);
|
||||
m_variableInboundDataError.set("1", m_variableOffset);
|
||||
ms_dbg(5, "Request body excluding files is bigger than the maximum expected.");
|
||||
ms_dbg(5, "Request body excluding files is bigger than the maximum expected. Limit: " \
|
||||
+ std::to_string(m_rules->m_requestBodyNoFilesLimit.m_value));
|
||||
} else {
|
||||
m_variableReqbodyError.set("0", m_variableOffset);
|
||||
m_variableReqbodyProcessorError.set("0", m_variableOffset);
|
||||
|
Loading…
x
Reference in New Issue
Block a user