HTMLForm: in URL encoding, percent-encode more characters

This commit is contained in:
Guenter Obiltschnig
2014-04-04 00:12:10 +02:00
parent f24cf35322
commit 008ef308e7

View File

@@ -348,9 +348,9 @@ void HTMLForm::writeUrl(std::ostream& ostr)
{
if (it != begin()) ostr << "&";
std::string name;
URI::encode(it->first, "=&+;", name);
URI::encode(it->first, "!?#/'\",;:$&()[]*+=@", name);
std::string value;
URI::encode(it->second, "=&+;", value);
URI::encode(it->second, "!?#/'\",;:$&()[]*+=@", value);
ostr << name << "=" << value;
}
}