Skip to content

Commit

Permalink
Refs #40 - Fixed digest error, when the message contains the null cha…
Browse files Browse the repository at this point in the history
…racter.
  • Loading branch information
AVPS committed Jan 19, 2016
1 parent 67b471d commit ed3a551
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyzor/digest.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ def digest_payloads(cls, msg):
for part in msg.walk():
if part.get_content_maintype() == "text":
payload = part.get_payload(decode=True)

charset = part.get_content_charset()
if charset:
charset = charset.replace("\x00", "")
errors = "ignore"
if not charset:
charset = "ascii"
Expand Down

0 comments on commit ed3a551

Please sign in to comment.