mirror of
https://github.com/mgeeky/decode-spam-headers.git
synced 2024-11-22 02:21:37 +01:00
oops
This commit is contained in:
parent
02fb5aafe3
commit
68a31e2540
@ -1778,10 +1778,10 @@ class SMTPHeadersAnalysis:
|
|||||||
try:
|
try:
|
||||||
out = base64.b64decode(value)
|
out = base64.b64decode(value)
|
||||||
except:
|
except:
|
||||||
try:
|
try:
|
||||||
out = base64.b64decode(value + b'=' * (-len(value) % 4))
|
out = base64.b64decode(value + b'=' * (-len(value) % 4))
|
||||||
except:
|
except:
|
||||||
out = value
|
out = value
|
||||||
|
|
||||||
if enc:
|
if enc:
|
||||||
out = out.decode(errors = 'ignore')
|
out = out.decode(errors = 'ignore')
|
||||||
|
Loading…
Reference in New Issue
Block a user