fixed bug in parsing POST file uploads by mjforan · Pull Request #7543 · esp8266/Arduino · GitHub
Skip to content

fixed bug in parsing POST file uploads#7543

Merged
earlephilhower merged 6 commits into
esp8266:masterfrom
mjforan:form-post-file-parse
Nov 2, 2020
Merged

fixed bug in parsing POST file uploads#7543
earlephilhower merged 6 commits into
esp8266:masterfrom
mjforan:form-post-file-parse

Conversation

@mjforan

@mjforan mjforan commented Aug 23, 2020

Copy link
Copy Markdown
Contributor

This PR fixes #7542. I rewrote the section of the Web Server library which handles files being uploaded via POST requests.

Comment thread libraries/ESP8266WebServer/src/Parsing-impl.h Outdated
Comment thread libraries/ESP8266WebServer/src/Parsing-impl.h
Comment thread libraries/ESP8266WebServer/src/Parsing-impl.h
@mjforan mjforan requested a review from d-a-v September 17, 2020 20:11

@d-a-v d-a-v left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, nothing jumps at me after carefully reading.

@earlephilhower earlephilhower self-requested a review October 25, 2020 05:28

@earlephilhower earlephilhower left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Strangely enough I was unable to reproduce your failure with master using the same PEM as you did, but I do see the issue you found in the existing code. Things have to align poorly in the HTTP stream to hit it, I guess.

Thx for the PR!

Comment thread libraries/ESP8266WebServer/src/Parsing-impl.h
@earlephilhower earlephilhower merged commit 5d2563e into esp8266:master Nov 2, 2020
@mjforan mjforan deleted the form-post-file-parse branch November 2, 2020 02:51
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.

Bug in parsing file upload through http form

4 participants