cpython/Lib/test/test_email
Abhilash Raj 21017ed904
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.
2020-05-28 20:04:59 -04:00
..
data
__init__.py
__main__.py
test__encoded_words.py
test__header_value_parser.py
test_asian_codecs.py
test_contentmanager.py bpo-40597: email: Use CTE if lines are longer than max_line_length consistently (gh-20038) 2020-05-13 20:53:26 -04:00
test_defect_handling.py
test_email.py bpo-40275: Adding threading_helper submodule in test.support (GH-20263) 2020-05-28 00:10:27 +02:00
test_generator.py
test_headerregistry.py bpo-39040: Fix parsing of email mime headers with whitespace between encoded-words. (gh-17620) 2020-05-28 20:04:59 -04:00
test_inversion.py
test_message.py
test_parser.py
test_pickleable.py
test_policy.py
test_utils.py
torture_test.py