]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-100884: email/_header_value_parser: don't encode list separators (GH-100885...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 17 Feb 2024 13:00:39 +0000 (14:00 +0100)
committerGitHub <noreply@github.com>
Sat, 17 Feb 2024 13:00:39 +0000 (15:00 +0200)
commit9148b77e0af91cdacaa7fe3dfac09635c3fe9a74
tree9dc9e8cfb1488abaab03c6191609a8b9aecceb90
parent068e2190de3b2625a5e1b3dc6432ae8c0a4daa25
[3.12] gh-100884: email/_header_value_parser: don't encode list separators (GH-100885) (GH-115592)

ListSeparator should not be encoded. This could happen when a long line
pushes its separator to the next line, which would have been encoded.
(cherry picked from commit 09fab93c3d857496c0bd162797fab816c311ee48)

Co-authored-by: Thomas Weißschuh <thomas@t-8ch.de>
Lib/email/_header_value_parser.py
Lib/test/test_email/test__header_value_parser.py
Misc/NEWS.d/next/Library/2023-01-09-14-08-02.gh-issue-100884.DcmdLl.rst [new file with mode: 0644]