]> granicus.if.org Git - python/commit
#16983: Apply postel's law to encoded words inside quoted strings.
authorR David Murray <rdmurray@bitdance.com>
Sat, 8 Feb 2014 18:12:00 +0000 (13:12 -0500)
committerR David Murray <rdmurray@bitdance.com>
Sat, 8 Feb 2014 18:12:00 +0000 (13:12 -0500)
commit0400d33928e6b463db164836da670700f03edc5d
tree70c96ca143468dfe5e7fcfc827fc32bf37d4ff4b
parent905c8c3d8dfe081d91e399aa5fd93d1659655264
#16983: Apply postel's law to encoded words inside quoted strings.

This applies only to the new parser.  The old parser decodes encoded words
inside quoted strings already, although it gets the whitespace wrong
when it does so.

This version of the patch only handles the most common case (a single encoded
word surrounded by quotes), but I haven't seen any other variations of this in
the wild yet, so its good enough for now.
Lib/email/_header_value_parser.py
Lib/test/test_email/test__header_value_parser.py
Lib/test/test_email/test_headerregistry.py
Misc/NEWS