mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 13:26:01 +03:00
Fix nolog rules logging to part H
This commit is contained in:
parent
9cac167faf
commit
199a9db3e2
2
CHANGES
2
CHANGES
@ -1,6 +1,8 @@
|
||||
v3.0.4 - YYYY-MMM-DD (to be released)
|
||||
-------------------------------------
|
||||
|
||||
- Fix rules with nolog are logging to part H
|
||||
[Issue #2196 - @martinhsv]
|
||||
- Fix argument key-value pair parsing cases
|
||||
[Issue #1904 - @martinhsv]
|
||||
- Fix: audit log part for response body for JSON format to be E
|
||||
|
11
src/rule.cc
11
src/rule.cc
@ -802,8 +802,7 @@ end_exec:
|
||||
|
||||
/* last rule in the chain. */
|
||||
bool isItToBeLogged = ruleMessage->m_saveMessage;
|
||||
if (isItToBeLogged && !m_containsMultiMatchAction
|
||||
&& !ruleMessage->m_message.empty()) {
|
||||
if (isItToBeLogged && !m_containsMultiMatchAction) {
|
||||
/* warn */
|
||||
trans->m_rulesMessages.push_back(*ruleMessage);
|
||||
|
||||
@ -812,14 +811,6 @@ end_exec:
|
||||
trans->serverLog(ruleMessage);
|
||||
}
|
||||
}
|
||||
else if (!m_containsMultiMatchAction) {
|
||||
/* warn */
|
||||
trans->m_rulesMessages.push_back(*ruleMessage);
|
||||
/* error */
|
||||
if (!ruleMessage->m_isDisruptive) {
|
||||
trans->serverLog(ruleMessage);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user