Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Jun 15, 2024
1 parent c9b4fe3 commit 17ce810
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion uSync.BackOffice/Services/uSyncService_Files.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ public void DeCompressFile(string zipArchive, string target)
if (entry.Length == 0) continue;

var filePath = GetOSDependentPath(entry.FullName);
var destination = Path.Combine(resolvedTarget, filePath);
var destination = Path.GetFullPath(Path.Combine(resolvedTarget, filePath));
if (destination.StartsWith(resolvedTarget) is false)
throw new Exception("Invalid file path");

var destinationFolder = Path.GetDirectoryName(destination);

Expand Down
2 changes: 1 addition & 1 deletion uSync.sln
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "uSync.Tests", "uSync.Tests\
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "uSync.SchemaGenerator", "uSync.SchemaGenerator\uSync.SchemaGenerator.csproj", "{1E5B64E5-E8A6-42F2-9079-FB71D6D237D6}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "uSync.BackOffice.Assets", "uSync.Backoffice.Assets\uSync.Backoffice.Assets.csproj", "{4ECC3DFD-5BCB-4095-8D06-DE482DF4C6A1}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "uSync.BackOffice.Assets", "uSync.Backoffice.Assets\uSync.BackOffice.Assets.csproj", "{4ECC3DFD-5BCB-4095-8D06-DE482DF4C6A1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "uSync.BackOffice.Targets", "uSync.BackOffice.Targets\uSync.BackOffice.Targets.csproj", "{B09F319A-7066-4B1B-B97D-F609B558C9F4}"
EndProject
Expand Down

0 comments on commit 17ce810

Please sign in to comment.