From 0cca2797dfd24cce9cfb1682bf2ce8f369ce4bc7 Mon Sep 17 00:00:00 2001 From: verhoek Date: Tue, 15 May 2018 20:29:08 +0200 Subject: [PATCH] Use concat paths in helper functions of googledrive. --- Duplicati/Library/Backend/GoogleServices/WebApi.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Duplicati/Library/Backend/GoogleServices/WebApi.cs b/Duplicati/Library/Backend/GoogleServices/WebApi.cs index 3d5ee8d5c..0c53eeb63 100644 --- a/Duplicati/Library/Backend/GoogleServices/WebApi.cs +++ b/Duplicati/Library/Backend/GoogleServices/WebApi.cs @@ -56,12 +56,12 @@ namespace Duplicati.Library.Backend.WebApi public static string FileQueryUrl(string fileId, NameValueCollection values = null) { - return Library.Utility.Uri.UriBuilder(Url.DRIVE, Path.File + '/' + fileId + fileId, values); + return Library.Utility.Uri.UriBuilder(Url.DRIVE, Library.Utility.Uri.ConcatPaths(Path.File, fileId), values); } public static string FileUploadUrl(string fileId, NameValueCollection values) { - return Library.Utility.Uri.UriBuilder(Url.UPLOAD, Path.File + '/' + fileId + fileId, values); + return Library.Utility.Uri.UriBuilder(Url.UPLOAD, Library.Utility.Uri.ConcatPaths(Path.File, fileId), values); } public static string FileUploadUrl(NameValueCollection values)