Skip to content

Commit

Permalink
Merge pull request #1267 from nusantara-self/eml-parser-utf8-fix
Browse files Browse the repository at this point in the history
Handle invalid UTF-8 bytes during decode for emlParser
  • Loading branch information
jeromeleonard authored Jul 9, 2024
2 parents be92c11 + f6a9835 commit 5902b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyzers/EmlParser/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def parseEml(filepath, job_directory, wkhtmltoimage, sanitized_rendering):
##
## Extract raw email
##
result["raw_email"] = raw_email.decode("utf-8")
result["raw_email"] = raw_email.decode("utf-8", errors="replace")
##
## Extract SMTP envelope
##
Expand Down

0 comments on commit 5902b1a

Please sign in to comment.