Skip to content

Commit 258e554

Browse files
Mario D. SantanaFelipe Zimmerle
authored andcommitted
Perform the intercept_action as well as the disruptive actions.
1 parent 59851ff commit 258e554

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apache2/re.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2513,6 +2513,11 @@ static void msre_perform_disruptive_actions(modsec_rec *msr, msre_rule *rule,
25132513
}
25142514
}
25152515
}
2516+
if (actionset->intercept_action_rec->metadata->type == ACTION_DISRUPTIVE) {
2517+
if (actionset->intercept_action_rec->metadata->execute != NULL) {
2518+
actionset->intercept_action_rec->metadata->execute(msr, mptmp, rule, actionset->intercept_action_rec);
2519+
}
2520+
}
25162521

25172522
/* If "noauditlog" was used do not mark the transaction relevant. */
25182523
if (actionset->auditlog != 0) {

0 commit comments

Comments
 (0)