mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
issue #I4ZDQI 修改判断方法
This commit is contained in:
parent
bdaad75554
commit
82c3852e51
@ -145,7 +145,7 @@ public class ZipReader implements Closeable {
|
|||||||
if (null == entryFilter || entryFilter.accept(zipEntry)) {
|
if (null == entryFilter || entryFilter.accept(zipEntry)) {
|
||||||
//gitee issue #I4ZDQI
|
//gitee issue #I4ZDQI
|
||||||
String path = zipEntry.getName();
|
String path = zipEntry.getName();
|
||||||
if (System.getProperty("os.name").contains("Windows")) {
|
if (System.getProperty("os.name").toLowerCase().startsWith("win")) {
|
||||||
path = StrUtil.replace(zipEntry.getName(), "*", "_");
|
path = StrUtil.replace(zipEntry.getName(), "*", "_");
|
||||||
}
|
}
|
||||||
// FileUtil.file会检查slip漏洞,漏洞说明见http://blog.nsfocus.net/zip-slip-2/
|
// FileUtil.file会检查slip漏洞,漏洞说明见http://blog.nsfocus.net/zip-slip-2/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user