aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/onedrive/onedrivelistdirectoryrequest.cpp
diff options
context:
space:
mode:
authorAlexander Tkachev2016-06-10 14:28:04 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commit6a93e8dd09ae2eeab616d14189a58633fd928c07 (patch)
tree80f8c7e52ad62321d8eed5864fa168803c99e272 /backends/cloud/onedrive/onedrivelistdirectoryrequest.cpp
parentc99b24c16d1111a701d915832f24ac457aef697d (diff)
downloadscummvm-rg350-6a93e8dd09ae2eeab616d14189a58633fd928c07.tar.gz
scummvm-rg350-6a93e8dd09ae2eeab616d14189a58633fd928c07.tar.bz2
scummvm-rg350-6a93e8dd09ae2eeab616d14189a58633fd928c07.zip
CLOUD: Add ConnMan::urlEncode()
Tried to use it everywhere I should've use it.
Diffstat (limited to 'backends/cloud/onedrive/onedrivelistdirectoryrequest.cpp')
-rw-r--r--backends/cloud/onedrive/onedrivelistdirectoryrequest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/backends/cloud/onedrive/onedrivelistdirectoryrequest.cpp b/backends/cloud/onedrive/onedrivelistdirectoryrequest.cpp
index e362600389..040ef153db 100644
--- a/backends/cloud/onedrive/onedrivelistdirectoryrequest.cpp
+++ b/backends/cloud/onedrive/onedrivelistdirectoryrequest.cpp
@@ -70,8 +70,9 @@ void OneDriveListDirectoryRequest::listNextDirectory() {
if (_currentDirectory != "" && _currentDirectory.lastChar() != '/' && _currentDirectory.lastChar() != '\\')
_currentDirectory += '/';
- Common::String url = "https://api.onedrive.com/v1.0/drive/special/approot:/" + _currentDirectory;
- url.deleteLastChar();
+ Common::String dir = _currentDirectory;
+ dir.deleteLastChar();
+ Common::String url = "https://api.onedrive.com/v1.0/drive/special/approot:/" + ConnMan.urlEncode(dir);
url += ":/children";
makeRequest(url);
}