Fixed tests

Signed-off-by: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
Bjarke Berg
2020-11-26 14:16:24 +01:00
parent f249553549
commit 064dbd2f67
10 changed files with 46 additions and 18 deletions

View File

@@ -93,7 +93,7 @@ namespace Umbraco.Web.Common.AspNetCore
// all those uses have been found and fixed
if (newPath.StartsWith(root)) throw new ArgumentException("The path appears to already be fully qualified. Please remove the call to MapPath");
return Path.Combine(root, newPath.TrimStart('~', '/'));
return Path.Combine(root, newPath.TrimStart('~', '/', '\\'));
}
public string ToAbsolute(string virtualPath)