]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117313: Fix re-folding email messages containing non-standard line separators...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 17 Apr 2024 10:00:25 +0000 (13:00 +0300)
committerGitHub <noreply@github.com>
Wed, 17 Apr 2024 10:00:25 +0000 (13:00 +0300)
commitaec1dac4efe36a7db51f08385ddcce978814dbe3
tree79b182f01e4d917bfa03810fb9e73845765e16f8
parent4e502a4997af4c8042a6ac13115a3f8ba31520ea
gh-117313: Fix re-folding email messages containing non-standard line separators (GH-117369)

Only treat '\n', '\r' and '\r\n' as line separators in re-folding the email
messages.  Preserve control characters '\v', '\f', '\x1c', '\x1d' and '\x1e'
and Unicode line separators '\x85', '\u2028' and '\u2029' as is.
Lib/email/policy.py
Lib/test/test_email/test_generator.py
Misc/NEWS.d/next/Library/2024-03-29-15-14-51.gh-issue-117313.ks_ONu.rst [new file with mode: 0644]