From 228ade0209c8bf750fbc86b37dab3dbfcd9a4a0c Mon Sep 17 00:00:00 2001 From: Vaporizer8 Date: Tue, 12 Jul 2016 21:33:28 +0200 Subject: [PATCH] Handle paths with leading / Paths with a leading / can cause issues with some WebDAV servers (IIS) as this results in https://example.com//foo/bar/ --- Duplicati/Library/Utility/Uri.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Duplicati/Library/Utility/Uri.cs b/Duplicati/Library/Utility/Uri.cs index 541fbed9d..e655ffd3b 100644 --- a/Duplicati/Library/Utility/Uri.cs +++ b/Duplicati/Library/Utility/Uri.cs @@ -260,7 +260,7 @@ namespace Duplicati.Library.Utility if (!string.IsNullOrEmpty(path)) { - if (!string.IsNullOrEmpty(host)) + if (!string.IsNullOrEmpty(host) && !path.StartsWith("/")) s += "/"; s += path; }