diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2025-02-19 13:12:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-19 13:12:34 (GMT) |
commit | 7cff053efeb8506495c5f77f40742341a1714d96 (patch) | |
tree | bfb8111a5900e68fd0befda67c0e49011f862918 /Lib/test/test_pydoc/pydoc_mod.py | |
parent | 9d727fe7396f9d745c84ee81951cecab442eb34e (diff) | |
download | cpython-7cff053efeb8506495c5f77f40742341a1714d96.zip cpython-7cff053efeb8506495c5f77f40742341a1714d96.tar.gz cpython-7cff053efeb8506495c5f77f40742341a1714d96.tar.bz2 |
[3.11] gh-80222: Fix email address header folding with long quoted-string (GH-122753) (#129009)
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 5aaf41685834901e4ed0a40f4c055b92991a0bb5)
Co-authored-by: Mike Edmunds <medmunds@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Diffstat (limited to 'Lib/test/test_pydoc/pydoc_mod.py')
0 files changed, 0 insertions, 0 deletions