]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-148192: Fix Generator._make_boundary behavior with CRLF line endings. ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 14 Apr 2026 16:04:50 +0000 (18:04 +0200)
committerGitHub <noreply@github.com>
Tue, 14 Apr 2026 16:04:50 +0000 (12:04 -0400)
commitb988157e87e08020a1fd54d45bbe669d006cd049
treeb9558c1e57cbc67dc2f0daae1a083b414caa6fd2
parent314f12c0157cd71a49cb5420413e938dad4f27c6
[3.14] gh-148192: Fix Generator._make_boundary behavior with CRLF line endings. (GH-148193) (#148550)

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.
(cherry picked from commit 4af46b4ab5af49d8df034320a9a70fcbb062f7cf)

Co-authored-by: Henry Jones <44321887+henryivesjones@users.noreply.github.com>
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]