Skip to content

Commit 008ef30

Browse files
committed
HTMLForm: in URL encoding, percent-encode more characters
1 parent f24cf35 commit 008ef30

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Net/src/HTMLForm.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,9 @@ void HTMLForm::writeUrl(std::ostream& ostr)
348348
{
349349
if (it != begin()) ostr << "&";
350350
std::string name;
351-
URI::encode(it->first, "=&+;", name);
351+
URI::encode(it->first, "!?#/'\",;:$&()[]*+=@", name);
352352
std::string value;
353-
URI::encode(it->second, "=&+;", value);
353+
URI::encode(it->second, "!?#/'\",;:$&()[]*+=@", value);
354354
ostr << name << "=" << value;
355355
}
356356
}

0 commit comments

Comments
 (0)