]> granicus.if.org Git - python/commit
#18044: Fix parsing of encoded words of the form =?utf8?q?=XX...?=
authorR David Murray <rdmurray@bitdance.com>
Thu, 11 Jul 2013 19:52:57 +0000 (15:52 -0400)
committerR David Murray <rdmurray@bitdance.com>
Thu, 11 Jul 2013 19:52:57 +0000 (15:52 -0400)
commit65171b28e77f589a490335c8749a24151e1d8817
tree6377dcdda4bad3baec23587cf016587858bbeaca
parent3641a74e1c03ce153042d2c21639e5b6b9604f3b
#18044: Fix parsing of encoded words of the form =?utf8?q?=XX...?=

The problem was I was only checking for decimal digits after the third '?',
not for *hex* digits :(.

This changeset also fixes a couple of comment typos, deletes an unused
function relating to encoded word parsing, and removed an invalid
'if' test from the folding function that was revealed by the tests
written to validate this issue.
Lib/email/_header_value_parser.py
Lib/test/test_email/test__encoded_words.py
Lib/test/test_email/test__header_value_parser.py
Lib/test/test_email/test_headerregistry.py
Misc/NEWS