Skip to content

Commit 8e4a962

Browse files
committed
MC-34749: Improve zip archive filename validation
1 parent a85d230 commit 8e4a962

File tree

1 file changed

+8
-0
lines changed
  • lib/internal/Magento/Framework/Archive

1 file changed

+8
-0
lines changed

lib/internal/Magento/Framework/Archive/Zip.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ public function unpack($source, $destination)
6969
return $destination;
7070
}
7171

72+
/**
73+
* Retrieve filename for import from zip archive.
74+
*
75+
* @param \ZipArchive $zip
76+
* @param string $baseName
77+
*
78+
* @return string
79+
*/
7280
private function getFilenameFromZip(\ZipArchive $zip, string $baseName): string
7381
{
7482
$index = 0;

0 commit comments

Comments
 (0)