Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.10] gh-143935: Email preserve parens when folding comments (GH-143936)#144350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
edgarrmondragon wants to merge1 commit intopython:3.10
base:3.10
Choose a base branch
Loading
fromedgarrmondragon:backport-17d1490-3.10

Conversation

@edgarrmondragon
Copy link
Contributor

@edgarrmondragonedgarrmondragon commentedJan 30, 2026
edited
Loading

Fix a bug in the folding of comments when flattening an email message using a modern email policy. Comments consisting of a very long sequence of non-foldable characters could trigger a forced line wrap that omitted the required leading space on the continuation line, causing the remainder of the comment to be interpreted as a new header field. This enabled header injection with carefully crafted inputs.
(cherry picked from commit17d1490)

Co-authored-by: Seth Michael Larsonseth@python.org
Co-authored-by: Denis Ledouxdle@odoo.com

…ythonGH-143936)Fix a bug in the folding of comments when flattening an email messageusing a modern email policy. Comments consisting of a very long sequence ofnon-foldable characters could trigger a forced line wrap that omitted therequired leading space on the continuation line, causing the remainder ofthe comment to be interpreted as a new header field. This enabled headerinjection with carefully crafted inputs.(cherry picked from commit17d1490)Co-authored-by: Seth Michael Larson seth@python.orgCo-authored-by: Denis Ledoux dle@odoo.com- Issue: Fix folding of long comments of unfoldable characters in email headerspython#143935Signed-off-by: Edgar Ramírez Mondragón <edgarrm358@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@edgarrmondragon@sethmlarson

[8]ページ先頭

©2009-2026 Movatter.jp