mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +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:
parent
4d03ef512e
commit
c7053e572f
@ -697,7 +697,7 @@ end_clean:
|
||||
|
||||
end_exec:
|
||||
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->m_rulesMessages.push_back(*ruleMessage);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user