Skip to content

Commit

Permalink
filter expert: treat filter_regex false as False
Browse files Browse the repository at this point in the history
if the parameter
filter_regex: false
was set, the bot treated this as true
with this patch, false is treated as false
  • Loading branch information
sebix committed May 10, 2024
1 parent 1822327 commit abc48c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
- `intelmq.bots.parsers.dataplane.parser`: Use ` | ` as field delimiter, fix parsing of AS names including `|` (PR#2488 by DigitalTrustCenter).

#### Experts
- `intelmq.bots.experts.filter.expert`:
- Treat value `false` for parameter `filter_regex` as false (PR#2499 by Sebastian Wagner).

#### Outputs
- `intelmq.bots.outputs.misp.output_feed`: handle failures if saved current event wasn't saved or is incorrect (PR by Kamil Mankowski).
Expand Down
2 changes: 1 addition & 1 deletion intelmq/bots/experts/filter/expert.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def init(self):
self.filter = False

self.regex = False
if self.filter_regex is not None:
if self.filter_regex is not None and self.filter_regex is not False:
self.regex = re.compile(self.filter_value)

self.time_filter = self.not_after is not None or self.not_before is not None
Expand Down

0 comments on commit abc48c7

Please sign in to comment.