8000 gh-121650: Encode newlines in headers, and verify headers are sound by encukou · Pull Request #122233 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-121650: Encode newlines in headers, and verify headers are sound #122233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jul 30, 2024
Prev Previous commit
Next Next commit
Add a blurb
  • Loading branch information
encukou committed Jul 27, 2024
commit 8e7d6f18f97f599326dc8964b5a61d49fd0e6e21
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
:mod:`email` headers with embedded newlines are now quoted on output. The
:mod:`~email.generator` will now refuse to serialize (write) headers that
are unsafely folded or delimited; see
:attr:`~email.policy.Policy.verify_generated_headers`. (Contributed by Bas
Bloemsaat and Petr Viktorin in :gh:`121650`.)
0