From 1060d85118094eab7ebb2936bc0e4220b419b551 Mon Sep 17 00:00:00 2001 From: abraunegg Date: Fri, 21 Dec 2018 11:28:16 +1100 Subject: [PATCH] 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 --- src/sync.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sync.d b/src/sync.d index b2504527..0d6db1c2 100644 --- a/src/sync.d +++ b/src/sync.d @@ -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