]> granicus.if.org Git - python/commit
Merged revisions 83690 via svnmerge from
authorR. David Murray <rdmurray@bitdance.com>
Wed, 4 Aug 2010 00:05:50 +0000 (00:05 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Wed, 4 Aug 2010 00:05:50 +0000 (00:05 +0000)
commit75a292e5be429977656acaf846345be9dc0a6b8e
tree6a78b925d0a0b0a0f7bdd1ad9bf7dfa01ca3163c
parentf38d888f2f9d071191a0defe4f37066c6c8d2233
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
Lib/email/test/test_email_renamed.py
Misc/ACKS
Misc/NEWS