Skip to content

Commit

Permalink
Fixes Zip Slip fix break when using ArchiveFileStreamContext to compress
Browse files Browse the repository at this point in the history
  • Loading branch information
robmen committed Sep 16, 2019
1 parent 75bb40d commit 0456999
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DTF/Libraries/Compression/ArchiveFileStreamContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -633,13 +633,13 @@ private string TranslateFilePath(string path)
}
else
{
this.ValidateArchivePath(path);

filePath = path;
}

if (filePath != null)
{
this.ValidateArchivePath(filePath);

if (this.directory != null)
{
filePath = Path.Combine(this.directory, filePath);
Expand Down

0 comments on commit 0456999

Please sign in to comment.