]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] bpo-36520: Email header folded incorrectly (GH-13608) (GH-13909)
authorAbhilash Raj <maxking@users.noreply.github.com>
Tue, 11 Jun 2019 23:28:10 +0000 (19:28 -0400)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 11 Jun 2019 23:28:10 +0000 (16:28 -0700)
commit36eea7af48ca0a1c96b78c82bf95bbd29d2332da
treec57b35d1c238f67ceabf752a24955b6244cb0ad2
parent36926df8341827fb2a5323f559daab8e34d33ed8
[3.8] bpo-36520: Email header folded incorrectly (GH-13608) (GH-13909)

* [bpo-36520](https://bugs.python.org/issue36520): reset the encoded word offset when starting a new
line during an email header folding operation

* ðŸ“œðŸ¤– Added by blurb_it.

* [bpo-36520](https://bugs.python.org/issue36520): add an additional test case, and provide descriptive
comments for the test_folding_with_utf8_encoding_* tests

* [bpo-36520](https://bugs.python.org/issue36520): fix whitespace issue

* [bpo-36520](https://bugs.python.org/issue36520): changes per reviewer request -- remove extraneous
backslashes; add whitespace between terminating quotes and
line-continuation backslashes; use "bpo-" instead of
"issue GH-" in comments
(cherry picked from commit f6713e84afc5addcfa8477dbdf2c027787f711c0)

Co-authored-by: websurfer5 <49998481+websurfer5@users.noreply.github.com>
https://bugs.python.org/issue36520
Lib/email/_header_value_parser.py
Lib/test/test_email/test_message.py
Misc/NEWS.d/next/Library/2019-05-28-02-37-00.bpo-36520.W4tday.rst [new file with mode: 0644]