gh-80222: Fix email address header folding with long quoted-string (#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. M
Mike Edmunds committed
5aaf41685834901e4ed0a40f4c055b92991a0bb5
Parent: 61b35f7
Committed by GitHub <noreply@github.com>
on 1/19/2025, 12:50:52 AM