]> granicus.if.org Git - python/commit
Merged revisions 83690 via svnmerge from
authorR. David Murray <rdmurray@bitdance.com>
Tue, 3 Aug 2010 23:35:44 +0000 (23:35 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Tue, 3 Aug 2010 23:35:44 +0000 (23:35 +0000)
commite06528c64b62abbaa49dedc395e1ce58ad3962fe
treef18571bb17671e57110e8a93ac356dc39ff52118
parent1f0f2785d9000e0120cca170208004ae0189dd3c
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.
........
Lib/email/header.py
Lib/email/test/test_email.py
Misc/ACKS
Misc/NEWS