Allow '@' for ' ' in uuencoded files.

This commit is contained in:
Jack Jansen 1995-11-14 10:35:19 +00:00
parent 40b546d40e
commit 5d9579707f

View file

@ -227,8 +227,11 @@ binascii_a2b_uu(self, args)
*/
this_ch = 0;
} else {
/* Check the character for legality */
if ( this_ch < ' ' || this_ch > (' ' + 63)) {
/* Check the character for legality
** The 64 in stead of the expected 63 is because there are a few
** uuencodes out there that use '@' as zero in stead of space.
*/
if ( this_ch < ' ' || this_ch > (' ' + 64)) {
PyErr_SetString(Error, "Illegal char");
Py_DECREF(rv);
return NULL;