Tony Nelson <tony_nel...@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.

----------
keywords: +patch
nosy: +tony_nelson
Added file: http://bugs.python.org/file13589/header_B_padding.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue3169>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to