Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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 missing colon
  • Loading branch information
encukou committed Jul 30, 2024
commit d7f5fc6499ce6495f8cc85656b1e463ded03a6d5
2 changes: 1 addition & 1 deletion 2 Lib/email/_header_value_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2804,7 +2804,7 @@ def _refold_parse_tree(parse_tree, *, policy):
wrap_as_ew_blocked -= 1
continue
tstr = str(part)
if part.token_type == 'ptext'
if part.token_type == 'ptext':
# Encode if tstr contains special characters.
want_encoding = not SPECIALSNL.isdisjoint(tstr)
else:
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.