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

fix decoding of multipart data parts containing control chars #14

Merged
merged 2 commits into from
Nov 28, 2017

Conversation

bungle
Copy link
Member

@bungle bungle commented Nov 28, 2017

This is my try to fix some issues with control chars, without rewriting the whole library.

It might fix issues reported here:
Kong/kong#3024
Kong/kong#2981

done = true
end

if line ~= "" then
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if I'm following this correctly, but what happens if you have a blank line split by \r\n inside one of the body parts? (ie, a blank line inside the "part value", which should be consumed in line 106)

Or is this not allowed by the multipart encoding standard, and if I send a DOS-formatted file I need to use Base64?

@hishamhm hishamhm merged commit 72b4661 into master Nov 28, 2017
@bungle bungle deleted the fix/control-chars-issues branch November 28, 2017 16:48
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.

2 participants