diff options
author | R. David Murray <rdmurray@bitdance.com> | 2010-08-03 23:35:44 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2010-08-03 23:35:44 (GMT) |
commit | e06528c64b62abbaa49dedc395e1ce58ad3962fe (patch) | |
tree | f18571bb17671e57110e8a93ac356dc39ff52118 /Misc | |
parent | 1f0f2785d9000e0120cca170208004ae0189dd3c (diff) | |
download | cpython-e06528c64b62abbaa49dedc395e1ce58ad3962fe.zip cpython-e06528c64b62abbaa49dedc395e1ce58ad3962fe.tar.gz cpython-e06528c64b62abbaa49dedc395e1ce58ad3962fe.tar.bz2 |
Merged revisions 83690 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83690 | r.david.murray | 2010-08-03 18:14:10 -0400 (Tue, 03 Aug 2010) | 10 lines
#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.
........
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -817,6 +817,7 @@ Felix Wiemann Gerry Wiener Frank Wierzbicki Bryce "Zooko" Wilcox-O'Hearn +Jason Williams John Williams Sue Williams Gerald S. Williams @@ -84,6 +84,9 @@ C-API Library ------- +- Issue #3196: email header decoding is now forgiving if an RFC2047 + encoded word encoded in base64 is lacking padding. + - Issue #8447: Make distutils.sysconfig follow symlinks in the path to the interpreter executable. This fixes a failure of test_httpservers on OS X. |