Commit 5d957970 authored by Jack Jansen's avatar Jack Jansen

Allow '@' for ' ' in uuencoded files.

parent 40b546d4
...@@ -227,8 +227,11 @@ binascii_a2b_uu(self, args) ...@@ -227,8 +227,11 @@ binascii_a2b_uu(self, args)
*/ */
this_ch = 0; this_ch = 0;
} else { } else {
/* Check the character for legality */ /* Check the character for legality
if ( this_ch < ' ' || this_ch > (' ' + 63)) { ** 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"); PyErr_SetString(Error, "Illegal char");
Py_DECREF(rv); Py_DECREF(rv);
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment