mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-11-21 22:42:39 +00:00
Fix forensic attachment processing
This commit is contained in:
1 parent
2e13b83945
commit
c75244b476
1 file changed
+1
-1
+1
-1
@@ -45,7 +45,7 @@ def decode_base64(data):
|
||||
bytes: The decoded bytes
|
||||
|
||||
"""
|
||||
data = str(data)
|
||||
data = bytes(data, encoding="ascii")
|
||||
missing_padding = len(data) % 4
|
||||
if missing_padding != 0:
|
||||
data += b'=' * (4 - missing_padding)
|
||||
|
||||
Reference in new issue
Block a user