8000 bpo-39040: Fix parsing of email mime headers with whitespace between encoded-words. by maxking · Pull Request #17620 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-39040: Fix parsing of email mime headers with whitespace between encoded-words. #17620

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 4 commits into from
May 29, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix the encoded word syntax and resultant error.
  • Loading branch information
maxking committed Dec 18, 2019
commit 016ceb3ef00b3b940993d35d539ce63d68437d4f
11 changes: 5 additions & 6 deletions Lib/test/test_email/test_headerregistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,13 +885,12 @@ def content_disp_as_value(self,
),

'parameter_value_with_fws_between_tokens': (
'attachment; filename="=?utf-8?q?FileName= WithSpaces.pdf"',
'attachment; filename="File =?utf-8?q?Name?= With Spaces.pdf"',
'attachment',
{'filename': '=?utf-8?q?FileName= WithSpaces.pdf'},
[],
'attachment; filename="=?utf-8?q?FileName= WithSpaces.pdf"',
('Content-Disposition: attachment;\n'
' filename="=?utf-8?q?FileName= WithSpaces.pdf"\n'),
{'filename': 'File Name With Spaces.pdf'},
[errors.InvalidHeaderDefect],
'attachment; filename="File Name With Spaces.pdf"',
('Content-Disposition: attachment; filename="File Name With Spaces.pdf"\n'),
)
}

Expand Down
0