FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.13] gh-80222: Fix email address header folding with long quoted-string (GH-122753) by miss-islington · Pull Request #129007 · python/cpython · GitHub

/ cpython Public

[3.13] gh-80222: Fix email address header folding with long quoted-string (GH-122753) - #129007

Merged
bitdancer merged 1 commit into
python:3.13from
miss-islington:backport-5aaf416-3.13
Jan 19, 2025
Merged

[3.13] gh-80222: Fix email address header folding with long quoted-string (GH-122753)#129007
bitdancer merged 1 commit into
python:3.13from
miss-islington:backport-5aaf416-3.13

Conversation

miss-islington commented Jan 19, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

Email generators using email.policy.default could incorrectly omit the
quote ('"') characters from a quoted-string during header refolding,
leading to invalid address headers and enabling header spoofing. This
change restores the quote characters on a bare-quoted-string as the
header is refolded, and escapes backslash and quote chars in the string.
(cherry picked from commit 5aaf416)

Co-authored-by: Mike Edmunds medmunds@gmail.com

…ing (pythonGH-122753)

Email generators using email.policy.default could incorrectly omit the
quote ('"') characters from a quoted-string during header refolding,
leading to invalid address headers and enabling header spoofing. This
change restores the quote characters on a bare-quoted-string as the
header is refolded, and escapes backslash and quote chars in the string.
(cherry picked from commit 5aaf416)

Co-authored-by: Mike Edmunds <medmunds@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL