mirror of
https://github.com/python/cpython.git
synced 2026-05-11 07:00:24 -04:00
5aaf416858
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.