Skip to content

HTMLForm constructor read application/x-www-form-urlencoded UTF-8 request body first parameter with BOM in name #606

@gvaduha

Description

@gvaduha

I'm trying to parse parameters from POST request

POST /url HTTP/1.1
...
content-type: application/x-www-form-urlencoded;charset=UTF-8

0xEF0xBB0xBFparam1=...

for this purpose I use HTMLForm constructor

HTTPServerRequest rq;
HTMLForm form(rq, rq.stream());

down the call stack in

void HTMLForm::readUrl(std::istream& istr)

I see the code doesn't check for content type and BOM, so first parameter name will be 0xEF0xBB0xBFparam1 instead of param1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions