Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Fix macro invocation with post-increment index as argument #1125

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/WebRequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,12 @@ void AsyncWebServerRequest::_onData(void *buf, size_t len){
_isPlainPost = true;
} else if(_contentType == "text/plain" && __is_param_char(((char*)buf)[0])){
size_t i = 0;
while (i<len && __is_param_char(((char*)buf)[i++]));
while (i<len)
{
auto data = ((char*)buf)[i++];
if( !__is_param_char(data) )
break;
}
if(i < len && ((char*)buf)[i-1] == '='){
_isPlainPost = true;
}
Expand Down