Skip to content

[3.13] gh-145831: email.quoprimime: decode() leaves stray \r when eol='\r\n' (GH-145832)#148311

Open
miss-islington wants to merge 1 commit intopython:3.13from
miss-islington:backport-1a0edb1-3.13
Open

[3.13] gh-145831: email.quoprimime: decode() leaves stray \r when eol='\r\n' (GH-145832)#148311
miss-islington wants to merge 1 commit intopython:3.13from
miss-islington:backport-1a0edb1-3.13

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented Apr 9, 2026

decoded[:-1] only strips one character, leaving a stray \r when eol
is two characters. Fix: decoded[:-len(eol)].
(cherry picked from commit 1a0edb1)

Co-authored-by: Stefan Zetzsche 120379523+stefanzetzsche@users.noreply.github.com

…`eol='\r\n'` (pythonGH-145832)

decoded[:-1] only strips one character, leaving a stray \r when eol
is two characters. Fix: decoded[:-len(eol)].
(cherry picked from commit 1a0edb1)

Co-authored-by: Stefan Zetzsche <120379523+stefanzetzsche@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants