Skip to content

Commit

Permalink
Remove outdated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-strecker-sonarsource committed Jul 9, 2024
1 parent ad08c27 commit f3a994b
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ public class ZipUnpacker : IUnpacker
{
public void Unpack(Stream archive, string destinationDirectory)
{
// Zip unpack ignores the wrapper and uses ExtractToDirectory directly.
// This avoids problems with zip-slip attacks and file permission setting.
// As a downside, the tests are a relying on direct disk operations.
using var zipArchive = new ZipArchive(archive, ZipArchiveMode.Read);
zipArchive.ExtractToDirectory(destinationDirectory);
}
Expand Down

0 comments on commit f3a994b

Please sign in to comment.