Request: createPairFromVar(): Explicitly decode value
May not be the case on POST requests.
This commit is contained in:
parent
91951abe9c
commit
82c081385b
@ -40,7 +40,7 @@ std::pair<std::string, std::string> Request::createPairFromVar(std::string var)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::string key = var.substr(0, equal);
|
std::string key = var.substr(0, equal);
|
||||||
std::string val = utils::html_xss(var.substr(equal + 1));
|
std::string val = utils::html_xss(utils::urldecode(var.substr(equal + 1)));
|
||||||
return std::make_pair(std::move(key), std::move(val));
|
return std::make_pair(std::move(key), std::move(val));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user