[issue1466065] base64 module ignores non-alphabet characters

Neil Tallim report at bugs.python.org
Wed Jul 29 00:40:57 CEST 2009


Neil Tallim <red.hamsterx at gmail.com> added the comment:

Attached a patch that modifies Lib/base64.py to raise a TypeError on any
unrecognized base64 input, rather than continuing silently. Also
includes unit tests.

Patch built against Python 3.2, r74246.

Correction to previous text: base64 continues silently, discarding
unrecognized characters, rather than failing.

----------
Added file: http://bugs.python.org/file14589/1466065[3.2-pure-python].diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1466065>
_______________________________________


More information about the Python-bugs-list mailing list