Also expand paths with file:// prefix

This commit is contained in:
Kenneth Skovhede
2025-03-24 20:56:32 +01:00
parent ba5ff7822e
commit c5d5bb356d
+3
View File
@@ -186,6 +186,9 @@ namespace Duplicati.Library.Utility
if (h.Length == 1 && p.StartsWith(":", StringComparison.Ordinal))
{
p = h + p;
if (p.IndexOfAny(System.IO.Path.GetInvalidPathChars()) >= 0)
throw new ArgumentException(Strings.Uri.UriParseError(url), nameof(url));
p = System.IO.Path.GetFullPath(p);
h = null;
}