mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Fixed noauditlog. See #451.
This commit is contained in:
11
apache2/re.c
11
apache2/re.c
@@ -1585,8 +1585,11 @@ static void msre_perform_disruptive_actions(modsec_rec *msr, msre_rule *rule,
|
||||
}
|
||||
}
|
||||
|
||||
/* If "noauditlog" was used do not mark the transaction for audit logging. */
|
||||
if (actionset->auditlog == 1) {
|
||||
/* If "noauditlog" used do not mark the transaction for audit logging. */
|
||||
if (actionset->auditlog == 0) {
|
||||
msr->is_relevant = 0;
|
||||
}
|
||||
else {
|
||||
msr->is_relevant++;
|
||||
}
|
||||
|
||||
@@ -1598,8 +1601,8 @@ static void msre_perform_disruptive_actions(modsec_rec *msr, msre_rule *rule,
|
||||
|| (msr->modsecurity->processing_mode == MODSEC_OFFLINE)
|
||||
|| (actionset->intercept_action == ACTION_NONE))
|
||||
{
|
||||
/* If "nolog" was used log at a higher level. */
|
||||
msc_alert(msr, (actionset->log == 0 ? 4 : 2), actionset,
|
||||
/* If "no(audit)?log" was used log at a higher level. */
|
||||
msc_alert(msr, ((actionset->log == 0) || (actionset->auditlog == 0) ? 4 : 2), actionset,
|
||||
"Warning.", message);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user