mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
Merge: #16983: Apply postel's law to encoded words inside quoted strings.
This commit is contained in:
commit
01e46ee7e2
4 changed files with 29 additions and 0 deletions
|
@ -1155,6 +1155,16 @@ class TestAddressHeader(TestHeaderBase):
|
|||
'example.com',
|
||||
None),
|
||||
|
||||
'rfc2047_atom_in_quoted_string_is_decoded':
|
||||
('"=?utf-8?q?=C3=89ric?=" <foo@example.com>',
|
||||
[errors.InvalidHeaderDefect],
|
||||
'Éric <foo@example.com>',
|
||||
'Éric',
|
||||
'foo@example.com',
|
||||
'foo',
|
||||
'example.com',
|
||||
None),
|
||||
|
||||
}
|
||||
|
||||
# XXX: Need many more examples, and in particular some with names in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue