Resolve JSONException when supplying --get-O365-drive-id option with a string containing spaces (#305)

* JSONException when supplying --get-O365-drive-id option with a string containing spaces
This commit is contained in:
abraunegg 2018-12-21 11:28:16 +11:00 committed by GitHub
parent 0193f37fed
commit 1060d85118
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1757,7 +1757,7 @@ final class SyncEngine
string site_id;
string drive_id;
JSONValue siteQuery = onedrive.o365SiteSearch(o365SharedLibraryName);
JSONValue siteQuery = onedrive.o365SiteSearch(encodeComponent(o365SharedLibraryName));
foreach (searchResult; siteQuery["value"].array) {
// Need an 'exclusive' match here with o365SharedLibraryName as entered