21017ed904
* 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. |
||
---|---|---|
.. | ||
data | ||
__init__.py | ||
__main__.py | ||
test__encoded_words.py | ||
test__header_value_parser.py | ||
test_asian_codecs.py | ||
test_contentmanager.py | ||
test_defect_handling.py | ||
test_email.py | ||
test_generator.py | ||
test_headerregistry.py | ||
test_inversion.py | ||
test_message.py | ||
test_parser.py | ||
test_pickleable.py | ||
test_policy.py | ||
test_utils.py | ||
torture_test.py |