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 c80057f commit 094e199
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DTF/Libraries/Compression/ArchiveFileStreamContext.cs
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 094e199

Please sign in to comment.