mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-04 04:37:59 +08:00
fix code
This commit is contained in:
parent
4fbbe21ac7
commit
b09aad7009
@ -146,6 +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()) {
|
||||||
|
// Win系统下
|
||||||
path = StrUtil.replace(path, "*", "_");
|
path = StrUtil.replace(path, "*", "_");
|
||||||
}
|
}
|
||||||
// FileUtil.file会检查slip漏洞,漏洞说明见http://blog.nsfocus.net/zip-slip-2/
|
// FileUtil.file会检查slip漏洞,漏洞说明见http://blog.nsfocus.net/zip-slip-2/
|
||||||
|
Loading…
Reference in New Issue
Block a user