only ignore rules without a message
This commit is contained in:
parent
927f2e4c48
commit
bdc62d3715
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@ func (r *AppsecRunner) AccumulateTxToEvent(evt *types.Event, req *appsec.ParsedR
|
|||
})
|
||||
|
||||
for _, rule := range req.Tx.MatchedRules() {
|
||||
if rule.Message() == "" || rule.DisruptiveAction() == "pass" || rule.DisruptiveAction() == "allow" {
|
||||
if rule.Message() == "" {
|
||||
r.logger.Tracef("discarding rule %d (action: %s)", rule.Rule().ID(), rule.DisruptiveAction())
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue