Perform the intercept_action as well as the disruptive actions.

This commit is contained in:
Mario D. Santana 2015-12-15 16:03:45 -07:00 committed by Felipe Zimmerle
parent 59851fff2b
commit 258e5545a2

View File

@ -2513,6 +2513,11 @@ static void msre_perform_disruptive_actions(modsec_rec *msr, msre_rule *rule,
}
}
}
if (actionset->intercept_action_rec->metadata->type == ACTION_DISRUPTIVE) {
if (actionset->intercept_action_rec->metadata->execute != NULL) {
actionset->intercept_action_rec->metadata->execute(msr, mptmp, rule, actionset->intercept_action_rec);
}
}
/* If "noauditlog" was used do not mark the transaction relevant. */
if (actionset->auditlog != 0) {