issue #I4ZDQI 修改判断方法

This commit is contained in:
Husky 2022-03-24 16:22:20 +08:00
parent bdaad75554
commit 82c3852e51

View File

@ -145,7 +145,7 @@ public class ZipReader implements Closeable {
if (null == entryFilter || entryFilter.accept(zipEntry)) {
//gitee issue #I4ZDQI
String path = zipEntry.getName();
if (System.getProperty("os.name").contains("Windows")) {
if (System.getProperty("os.name").toLowerCase().startsWith("win")) {
path = StrUtil.replace(zipEntry.getName(), "*", "_");
}
// FileUtil.file会检查slip漏洞漏洞说明见http://blog.nsfocus.net/zip-slip-2/