mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Bug #1588217: don't parse "= " as a soft line break in binascii's
a2b_qp() function, instead leave it in the string as quopri.decode() does.
This commit is contained in:
parent
540821183b
commit
25aabf4cbb
3 changed files with 6 additions and 3 deletions
|
@ -1057,8 +1057,7 @@ binascii_a2b_qp(PyObject *self, PyObject *args, PyObject *kwargs)
|
|||
in++;
|
||||
if (in >= datalen) break;
|
||||
/* Soft line breaks */
|
||||
if ((data[in] == '\n') || (data[in] == '\r') ||
|
||||
(data[in] == ' ') || (data[in] == '\t')) {
|
||||
if ((data[in] == '\n') || (data[in] == '\r')) {
|
||||
if (data[in] != '\n') {
|
||||
while (in < datalen && data[in] != '\n') in++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue