cpython/Misc/NEWS.d/next
Miss Islington (bot) a6ae02d7e9
bpo-39040: Fix parsing of email mime headers with whitespace between encoded-words. (gh-17620)
* bpo-39040: Fix parsing of email headers with encoded-words inside a quoted string.

It is fairly common to find malformed mime headers (especially content-disposition
headers) where the parameter values, instead of being encoded to RFC
standards, are "encoded" by doing RFC 2047 "encoded word" encoding, and
then enclosing the whole thing in quotes.  The processing of these malformed
headers was incorrectly leaving the spaces between encoded words in the decoded
text (whitespace between adjacent encoded words is supposed to be stripped on
decoding).  This changeset fixes the encoded word processing inside quoted strings
(bare-quoted-string) to do correct RFC 2047 decoding by stripping that
whitespace.
(cherry picked from commit 21017ed904)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
2020-05-29 04:43:06 -07:00
..
Build [3.9] bpo-40514: Remove --with-experimental-isolated-subinterpreters in 3.9 (GH-20228) 2020-05-20 00:27:46 +02:00
C API Python 3.9.0b1 2020-05-19 01:07:09 +02:00
Core and Builtins bpo-40217: Ensure Py_VISIT(Py_TYPE(self)) is always called for PyType_FromSpec types (reverts GH-19414) (GH-20264) 2020-05-28 08:12:23 -07:00
Documentation Python 3.9.0b1 2020-05-19 01:07:09 +02:00
IDLE bpo-40723: Make IDLE autocomplete test run without __main__.__file__ (GH-20311) 2020-05-24 04:14:17 -07:00
Library bpo-39040: Fix parsing of email mime headers with whitespace between encoded-words. (gh-17620) 2020-05-29 04:43:06 -07:00
Security Python 3.9.0b1 2020-05-19 01:07:09 +02:00
Tests Python 3.9.0b1 2020-05-19 01:07:09 +02:00
Tools-Demos Python 3.9.0b1 2020-05-19 01:07:09 +02:00
Windows [3.9] bpo-39631: Adds NEWS entry (GH-20227) (GH-20241) 2020-05-22 15:29:13 -07:00
macOS Python 3.9.0b1 2020-05-19 01:07:09 +02:00