bundled_imaplib2 encode removed cr

This patch removes the cr in the encoding call. It avoids a crash.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-28 13:37:09 +02:00
parent 6378c722b0
commit 6fa099ff74

View File

@ -2268,9 +2268,9 @@ class _Authenticator(object):
else:
t = inp
inp = b''
e = binascii.b2a_base64(t)
e = binascii.b2a_base64(t, newline=False)
if e:
oup = oup + e[:-1]
oup = oup + e
return oup
def decode(self, inp):