mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
Fix (hutool-core): 修复后缀为 zip 的文件被识别成 jar 的问题
# 修改 1. 由于 jar 和 zip 文件的头类似,会存在被识别成 jar 的情况,在识别成 jar 后进入判断分支时没有判断后缀是 zip 但是被识别成 jar 的情况,特此补充这种情况,避免 zip 被识别成 jar
This commit is contained in:
parent
b1642d4625
commit
65ccea7940
@ -194,6 +194,8 @@ public class FileTypeUtil {
|
|||||||
} else if ("pptx".equalsIgnoreCase(extName)) {
|
} else if ("pptx".equalsIgnoreCase(extName)) {
|
||||||
// issue#I5A0GO
|
// issue#I5A0GO
|
||||||
typeName = "pptx";
|
typeName = "pptx";
|
||||||
|
} else if ("zip".equalsIgnoreCase(extName)) {
|
||||||
|
typeName = "zip";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return typeName;
|
return typeName;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user