From 1843030b8aedde2178220156043aa4b5c16d72d0 Mon Sep 17 00:00:00 2001 From: probonopd Date: Tue, 12 Sep 2017 14:41:54 +0200 Subject: [PATCH] Allow for double quotes in boundary (#3455) as per https://tools.ietf.org/html/rfc2046#section-5.1.1 --- libraries/ESP8266WebServer/src/Parsing.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/ESP8266WebServer/src/Parsing.cpp b/libraries/ESP8266WebServer/src/Parsing.cpp index d069bf1a1..84b2cceca 100644 --- a/libraries/ESP8266WebServer/src/Parsing.cpp +++ b/libraries/ESP8266WebServer/src/Parsing.cpp @@ -166,6 +166,7 @@ bool ESP8266WebServer::_parseRequest(WiFiClient& client) { isEncoded = true; } else if (headerValue.startsWith("multipart/")){ boundaryStr = headerValue.substring(headerValue.indexOf('=')+1); + boundaryStr.replace("\"",""); isForm = true; } } else if (headerName.equalsIgnoreCase("Content-Length")){