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/
This commit is contained in:
Vaporizer8
2016-07-12 21:33:28 +02:00
committed by GitHub
parent 44eae89cf2
commit 228ade0209
+1 -1
View File
@@ -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;
}