cpython/Lib/email
R. David Murray c4e69cc1d8 #3196: if needed pad a short base64 encoded word before trying to decode.
The RFCs encourage following Postel's law: be liberal in what you accept.
So if someone forgot to pad the base64 encoded word payload to an
even four bytes, we add the padding before handing it to base64mime.decode.
Previously, missing padding resulted in a HeaderParseError.

Patch by Jason Williams.
2010-08-03 22:14:10 +00:00
..
mime Merged revisions 73004,73439,73496,73509,73529,73564,73576-73577,73595-73596,73605 via svnmerge from 2009-06-28 17:22:03 +00:00
test #3196: if needed pad a short base64 encoded word before trying to decode. 2010-08-03 22:14:10 +00:00
__init__.py Copying the email package back, despite its failings. 2007-08-30 01:15:14 +00:00
_parseaddr.py Copying the email package back, despite its failings. 2007-08-30 01:15:14 +00:00
base64mime.py Issue #4770: Restrict binascii module to accept only bytes (as specified). 2010-07-27 21:20:15 +00:00
charset.py Fix Charset.body_encode to encode to output_charset before calling base64mime. 2010-06-03 01:58:28 +00:00
encoders.py #4768: store base64 encoded email body parts as text, not binary. 2010-06-04 16:11:08 +00:00
errors.py Copying the email package back, despite its failings. 2007-08-30 01:15:14 +00:00
feedparser.py #1555570: correctly handle a \r\n that is split by the read buffer. 2010-07-17 01:19:57 +00:00
generator.py Merged revisions 78274 via svnmerge from 2010-02-21 04:39:40 +00:00
header.py #3196: if needed pad a short base64 encoded word before trying to decode. 2010-08-03 22:14:10 +00:00
iterators.py Patch# 1258 by Christian Heimes: kill basestring. 2007-10-16 18:12:55 +00:00
message.py Issue #4770: Restrict binascii module to accept only bytes (as specified). 2010-07-27 21:20:15 +00:00
parser.py Patch for issue 2848, mostly by Humberto Diogenes, with a couple of 2008-06-12 04:06:45 +00:00
quoprimime.py Merged revisions 73952 via svnmerge from 2009-07-12 16:43:19 +00:00
utils.py Merged revisions 77209,77229,77359-77360,77371 via svnmerge from 2010-01-09 18:45:30 +00:00