mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Minor fix in the decision on whenever the log callback should be called
This commit is contained in:
@@ -697,7 +697,7 @@ end_clean:
|
||||
|
||||
end_exec:
|
||||
executeActionsAfterFullMatch(trans, containsDisruptive, ruleMessage);
|
||||
if (this->m_chained == false) {
|
||||
if (this->m_chained == false && ruleMessage->m_saveMessage != false) {
|
||||
trans->serverLog(ruleMessage);
|
||||
trans->m_rulesMessages.push_back(*ruleMessage);
|
||||
}
|
||||
|
@@ -100,8 +100,7 @@ std::string RuleMessage::errorLog(const RuleMessage *rm) {
|
||||
}
|
||||
|
||||
std::string RuleMessage::log(const RuleMessage *rm) {
|
||||
std::string msg;
|
||||
|
||||
std::string msg("");
|
||||
if (rm->m_isDisruptive) {
|
||||
msg.append(disruptiveErrorLog(rm));
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user