[issue3169] email/header.py doesn't handle Base64 headers that have been insufficiently padded.
report at bugs.python.org
Fri Apr 3 00:09:20 CEST 2009
Tony Nelson <tony_nelson at users.sourceforge.net> added the comment:
Postel's law suggests that, as bad padding can be repaired,
decode_header ought to do so. The patch does that, adds a test for it,
and alters another test to still properly fail on really bad encoded data.
The test doesn't check a single character encoded string, as such does
not specify a complete octet and I felt that base64 decoders might
reasonably differ on what to do then.
The issue exists in Python2.6.1 (where I made it) and trunk.
Added file: http://bugs.python.org/file13589/header_B_padding.patch
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list