Skip to content
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

Do not alter "name" field of Content-Type header #1409

Merged
merged 2 commits into from
Mar 14, 2021

Conversation

nbianca
Copy link
Contributor

@nbianca nbianca commented Sep 9, 2020

When Content-Type header parser fails, it tries to sanitize the value
and then parse it again. One step of the sanitization process was to
lowercase its value, which could change the meaning of "name" and
"filename" fields as upper and lower case characters represent
different things.

When Content-Type header parser fails, it tries to sanitize the value
and then parse it again. One step of the sanitization process was to
lowercase its value, which could change the meaning of "name" and
"filename" fields as upper and lower case characters represent
different things.
@nbianca
Copy link
Contributor Author

nbianca commented Oct 13, 2020

Hey @mikel and @jeremy,

Can you please review this?

Copy link
Collaborator

@jeremy jeremy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great diagnosis and fix. Thanks @nbianca!

@jeremy jeremy added this to the 2.7.2 milestone Mar 14, 2021
@jeremy jeremy merged commit 76318c8 into mikel:master Mar 14, 2021
jeremy pushed a commit that referenced this pull request Mar 14, 2021
When Content-Type header parser fails, it tries to sanitize the value
and then parse it again. One step of the sanitization process was to
lowercase its value, which could change the meaning of "name" and
"filename" fields as upper and lower case characters represent
different things.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants