mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-02-17 07:03:58 +00:00
Actual 8.14.1 release
- Fix unit tests by enforcing base64 validation
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user