mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 12:07:46 +03:00
General improvements on audit logs information
Making actions: msg, logdata, tag and others to work in the same fashion that they work on ModSecurity v2.x
This commit is contained in:
@@ -508,6 +508,13 @@ bool Rule::evaluate(Transaction *trasn) {
|
||||
e.pop_back();
|
||||
}
|
||||
}
|
||||
|
||||
if (!m_log_message.empty() || !m_log_data.empty()) {
|
||||
RuleMessage *ruleMessage = new modsecurity::RuleMessage(this, m_log_message);
|
||||
ruleMessage->m_data = m_log_data;
|
||||
trasn->m_rulesMessages.push_back(ruleMessage);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user