]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-148192: Fix Generator._make_boundary behavior with CRLF line endings. (#148193)
authorHenry Jones <44321887+henryivesjones@users.noreply.github.com>
Tue, 14 Apr 2026 13:10:08 +0000 (01:10 +1200)
committerGitHub <noreply@github.com>
Tue, 14 Apr 2026 13:10:08 +0000 (09:10 -0400)
commit4af46b4ab5af49d8df034320a9a70fcbb062f7cf
tree58aea9dca77f437aa5a23c560c251a1310787faa
parent74a4f8c1d0caece261b379d5a6cd4e41eae3557a
gh-148192: Fix Generator._make_boundary behavior with CRLF line endings. (#148193)

The Generator._make_boundary regex did not match on boundary phrases correctly when using CRLF line endings due to re.MULTILINE not considering \r\n as a line ending.
Lib/email/generator.py
Lib/test/test_email/test_generator.py
Misc/NEWS.d/next/Library/2026-04-07-14-13-40.gh-issue-148192.34AUYQ.rst [new file with mode: 0644]