1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

Allow for double quotes in boundary (#3455)

as per https://tools.ietf.org/html/rfc2046#section-5.1.1
This commit is contained in:
probonopd 2017-09-12 14:41:54 +02:00 committed by Ivan Grokhotkov
parent 6ac48124bd
commit 1843030b8a

View File

@ -166,6 +166,7 @@ bool ESP8266WebServer::_parseRequest(WiFiClient& client) {
isEncoded = true; isEncoded = true;
} else if (headerValue.startsWith("multipart/")){ } else if (headerValue.startsWith("multipart/")){
boundaryStr = headerValue.substring(headerValue.indexOf('=')+1); boundaryStr = headerValue.substring(headerValue.indexOf('=')+1);
boundaryStr.replace("\"","");
isForm = true; isForm = true;
} }
} else if (headerName.equalsIgnoreCase("Content-Length")){ } else if (headerName.equalsIgnoreCase("Content-Length")){