Skip to content

Commit 6b0944d

Browse files
qiyanlongplrthink
authored andcommitted
Update RNZipArchiveModule.java
解决解压带有密码的压缩包,解压文件夹中的文件,提示头文件找不到的问题。
1 parent f8e2ba5 commit 6b0944d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/rnziparchive/RNZipArchiveModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ public void run() {
9595
throw new SecurityException(String.format("Found Zip Path Traversal Vulnerability with %s", canonicalPath));
9696
}
9797

98-
zipFile.extractFile(fileHeader, destDirectory);
9998
if (!fileHeader.isDirectory()) {
99+
zipFile.extractFile(fileHeader, destDirectory);
100100
extractedFileNames.add(fileHeader.getFileName());
101101
}
102102
updateProgress(i + 1, totalFiles, zipFilePath);

0 commit comments

Comments
 (0)