summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
authorMike Edmunds <medmunds@gmail.com>2025-03-18 11:07:17 (GMT)
committerGitHub <noreply@github.com>2025-03-18 11:07:17 (GMT)
commit295b53df2aa18deb625a7da41f7e4babfe6ef34b (patch)
tree4937e75b5446e11cdc0b8a677c98bc9f216f4da8 /Python/errors.c
parentab6333f7f56554bfd6c01eff567ddfb163a3dae6 (diff)
downloadcpython-295b53df2aa18deb625a7da41f7e4babfe6ef34b.zip
cpython-295b53df2aa18deb625a7da41f7e4babfe6ef34b.tar.gz
cpython-295b53df2aa18deb625a7da41f7e4babfe6ef34b.tar.bz2
gh-121284: Fix email address header folding with parsed encoded-word (GH-122754)
Email generators using email.policy.default may convert an RFC 2047 encoded-word to unencoded form during header refolding. In a structured header, this could allow 'specials' chars outside a quoted-string, leading to invalid address headers and enabling spoofing. This change ensures a parsed encoded-word that contains specials is kept as an encoded-word while the header is refolded. [Better fix from @bitdancer.] --------- Co-authored-by: R David Murray <rdmurray@bitdance.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions