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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user