mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Postponing the decision to whenever save or not a log message to the last rule
Whenever there is a chained rule, the decision of saving a message on the webserver's log will be taken after the execution of all actions on the chain, including the default actions.
This commit is contained in:
@@ -697,7 +697,7 @@ end_clean:
|
|||||||
|
|
||||||
end_exec:
|
end_exec:
|
||||||
executeActionsAfterFullMatch(trans, containsDisruptive, ruleMessage);
|
executeActionsAfterFullMatch(trans, containsDisruptive, ruleMessage);
|
||||||
if (this->m_chained == false && ruleMessage->m_saveMessage != false) {
|
if (m_ruleId != 0 && ruleMessage->m_saveMessage != false) {
|
||||||
trans->serverLog(ruleMessage);
|
trans->serverLog(ruleMessage);
|
||||||
trans->m_rulesMessages.push_back(*ruleMessage);
|
trans->m_rulesMessages.push_back(*ruleMessage);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user