fix freesound URL parameter escape
git-svn-id: svn://localhost/ardour2/branches/3.0@13698 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
57bcb2182f
commit
cea21cab7e
@ -212,10 +212,15 @@ std::string Mootcher::searchText(std::string query, int page, std::string filter
|
|||||||
params += buf;
|
params += buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
params += "q=" + query;
|
char *eq = curl_easy_escape(curl, query.c_str(), query.length());
|
||||||
|
params += "q=" + std::string(eq);
|
||||||
|
free(eq);
|
||||||
|
|
||||||
if (filter != "")
|
if (filter != "") {
|
||||||
params += "&f=" + filter;
|
char *ef = curl_easy_escape(curl, filter.c_str(), filter.length());
|
||||||
|
params += "&f=" + std::string(ef);
|
||||||
|
free(ef);
|
||||||
|
}
|
||||||
|
|
||||||
if (sort)
|
if (sort)
|
||||||
params += "&s=" + sortMethodString(sort);
|
params += "&s=" + sortMethodString(sort);
|
||||||
|
Loading…
Reference in New Issue
Block a user