This commit is contained in:
Looly 2022-03-25 10:32:04 +08:00
parent 222f18e847
commit 4fbbe21ac7

View File

@ -146,7 +146,7 @@ public class ZipReader implements Closeable {
//gitee issue #I4ZDQI //gitee issue #I4ZDQI
String path = zipEntry.getName(); String path = zipEntry.getName();
if (FileUtil.isWindows()) { if (FileUtil.isWindows()) {
path = StrUtil.replace(zipEntry.getName(), "*", "_"); path = StrUtil.replace(path, "*", "_");
} }
// FileUtil.file会检查slip漏洞漏洞说明见http://blog.nsfocus.net/zip-slip-2/ // FileUtil.file会检查slip漏洞漏洞说明见http://blog.nsfocus.net/zip-slip-2/
final File outItemFile = FileUtil.file(outFile, path); final File outItemFile = FileUtil.file(outFile, path);