Merge pull request #662 from sbwalker/master

fix regression bug caused by #648  - the entries within a nupkg (zip) package use the '/' separator - the fix in #648 was causing a wwwroot\wwwroot\... folder to be created on Windows
This commit is contained in:
Shaun Walker 2020-07-23 14:59:25 -04:00 committed by GitHub
commit abda377f6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,7 +98,7 @@ namespace Oqtane.Infrastructure
ExtractFile(entry, filename);
break;
case "wwwroot":
filename = Path.Combine(webRootPath, Utilities.PathCombine(entry.FullName.Replace($"wwwroot{Path.DirectorySeparatorChar}", "").Split(Path.DirectorySeparatorChar)));
filename = Path.Combine(webRootPath, Utilities.PathCombine(entry.FullName.Replace($"wwwroot/", "").Split('/')));
ExtractFile(entry, filename);
break;
case "runtimes":