mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Adds support to the REQUEST_BODY_LENGTH variable
This commit is contained in:
@@ -560,6 +560,8 @@ int Assay::processRequestBody() {
|
||||
store_variable("FULL_REQUEST_LENGTH", std::to_string(fullRequest.size()));
|
||||
|
||||
store_variable("REQUEST_BODY", m_requestBody.str());
|
||||
store_variable("REQUEST_BODY_LENGTH",
|
||||
std::to_string(m_requestBody.str().size()));
|
||||
|
||||
this->m_rules->evaluate(ModSecurity::RequestBodyPhase, this);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user