CLOUD: Add ConnMan::urlEncode()
Tried to use it everywhere I should've use it.
This commit is contained in:
parent
c99b24c16d
commit
6a93e8dd09
8 changed files with 23 additions and 8 deletions
|
@ -78,6 +78,17 @@ void ConnectionManager::showCloudDisabledIcon() {
|
|||
startTimer();
|
||||
}
|
||||
|
||||
Common::String ConnectionManager::urlEncode(Common::String s) {
|
||||
if (!_multi) return "";
|
||||
char *output = curl_easy_escape(_multi, s.c_str(), s.size());
|
||||
if (output) {
|
||||
Common::String result = output;
|
||||
curl_free(output);
|
||||
return result;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
//private goes here:
|
||||
|
||||
void connectionsThread(void *ignored) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue