Skip to content

Commit

Permalink
Actual 8.14.1 release
Browse files Browse the repository at this point in the history
- Fix unit tests by enforcing base64 validation
  • Loading branch information
seanthegeek committed Sep 3, 2024
1 parent 3ca3d64 commit 79cd7d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parsedmarc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,8 @@ def extract_report(input_):
file_object = None
if isinstance(input_, str):
try:
file_object = BytesIO(b64decode(input_))
input_ = b64decode(input_, validate=True)
file_object = BytesIO(input_)
except binascii.Error:
pass
if file_object is None:
Expand Down

0 comments on commit 79cd7d3

Please sign in to comment.