Skip to content

Commit

Permalink
Update RNZipArchiveModule.java
Browse files Browse the repository at this point in the history
解决解压带有密码的压缩包,解压文件夹中的文件,提示头文件找不到的问题。
  • Loading branch information
qiyanlong authored and plrthink committed Apr 19, 2021
1 parent f8e2ba5 commit 6b0944d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ public void run() {
throw new SecurityException(String.format("Found Zip Path Traversal Vulnerability with %s", canonicalPath));
}

zipFile.extractFile(fileHeader, destDirectory);
if (!fileHeader.isDirectory()) {
zipFile.extractFile(fileHeader, destDirectory);
extractedFileNames.add(fileHeader.getFileName());
}
updateProgress(i + 1, totalFiles, zipFilePath);
Expand Down

0 comments on commit 6b0944d

Please sign in to comment.