RequestContext::get_query() is fully URI-encoded

This commit is contained in:
Veloman Yunkan
2023-01-25 16:52:36 +04:00
parent 772243e832
commit 63e0d5c7c2
4 changed files with 16 additions and 16 deletions

View File

@ -116,10 +116,10 @@ MHD_Result RequestContext::fill_argument(void *__this, enum MHD_ValueKind kind,
if ( ! _this->queryString.empty() ) {
_this->queryString += "&";
}
_this->queryString += key;
_this->queryString += urlEncode(key, true);
if ( value ) {
_this->queryString += "=";
_this->queryString += value;
_this->queryString += urlEncode(value, true);
}
return MHD_YES;
}