Skip to content

Commit

Permalink
FIX: CodeQL exponential backtracking on strings
Browse files Browse the repository at this point in the history
As suggested in #2138, credits @monoidic

Fixes #2138

Signed-off-by: Sebastian Waldbauer <[email protected]>
  • Loading branch information
waldbauer-certat committed Feb 1, 2022
1 parent 1dc5364 commit 854f5f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intelmq/bots/parsers/sucuri/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def handle_data(self, data):


parser = MyHTMLParser()
remove_comments = re.compile(r"<!--(.|\s|\n)*?-->")
remove_comments = re.compile(r"<!--.*?-->", re.DOTALL)


class SucuriParserBot(ParserBot):
Expand Down

0 comments on commit 854f5f5

Please sign in to comment.