From 2902571eb285e97af3348b68ff6b85f0f8260a9d Mon Sep 17 00:00:00 2001 From: kolos Date: Mon, 3 Apr 2023 17:01:53 +0200 Subject: [PATCH] Adds checking for parameters when application/x-www-form-urlencoded content type is used --- src/WebRequest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebRequest.cpp b/src/WebRequest.cpp index bbce5ca4c..db1e8143b 100644 --- a/src/WebRequest.cpp +++ b/src/WebRequest.cpp @@ -143,7 +143,7 @@ void AsyncWebServerRequest::_onData(void *buf, size_t len){ _parsedLength += len; } else { if(_parsedLength == 0){ - if(_contentType.startsWith("application/x-www-form-urlencoded")){ + if(_contentType.startsWith("application/x-www-form-urlencoded") && __is_param_char(((char*)buf)[0])){ _isPlainPost = true; } else if(_contentType == "text/plain" && __is_param_char(((char*)buf)[0])){ size_t i = 0;