Skip to content

Commit

Permalink
hotfix for nuclei to get it back working DefectDojo#9017 (DefectDojo#…
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-sommer authored Nov 27, 2023
1 parent fa75e0b commit c751b97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dojo/tools/nuclei/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def get_description_for_scan_types(self, scan_type):

def get_findings(self, filename, test):
filecontent = filename.read()
if isinstance(filecontent, bytes):
filecontent = filecontent.decode("utf-8")
data = []
if filecontent == "" or len(filecontent) == 0:
return []
Expand Down

0 comments on commit c751b97

Please sign in to comment.