Commit Graph

4358 Commits

Author SHA1 Message Date
Looly
9aef56a973 重构根据file magic number判断文件类型 2023-01-15 11:27:08 +08:00
Golden Looly
d5718240cc
Merge pull request #2834 from CherryRum/lin_dev
fix(FileTypeUtil): 重构根据file magic number判断文件类型
2023-01-15 11:23:25 +08:00
Looly
78a14dc345 HttpGlobalConfig.allowPatch()调用时忽略错误 2023-01-15 11:22:44 +08:00
Looly
247d79a4fb HttpGlobalConfig.allowPatch()调用时忽略错误 2023-01-15 11:21:21 +08:00
Looly
554b828745 XmlUtil.readObjectFromXml增加注入漏洞的警告注释,并标识为废弃 2023-01-15 11:08:09 +08:00
Looly
b4f6ffc66f Merge branch 'v5-dev' of gitee.com:dromara/hutool into v5-dev 2023-01-15 11:01:57 +08:00
Looly
a0cba2fd55 修复HexUtil.isHexNumber()对"-"的判断问题 2023-01-15 11:01:28 +08:00
yulin
d67e1c567d fix(FileTypeUtil): 重构根据file magic number判断文件类型
1.重构多个Magic Number
2.根据单独类型匹配,修复某些文件跳位置对比
3.获取到文件Mime类型和后缀
4.获取文件流从28byte提升到64byte
5.添加精确匹配如docx、xlsx、pptx、doc、xls、ppt,精确匹配为8192byte(大小10k文件左右)
6.添加file magic number枚举

Closes https://github.com/dromara/hutool/issues/2821
2022-12-31 21:31:46 +08:00
Looly
a9ed895c9d
!907 ECB/PKCS5Padding is the default mode and padding
Merge pull request !907 from 悟道/v5-dev
2022-12-28 07:37:09 +00:00
悟道
bb629b6e7e fix comment: ECB/PKCS5Padding is the default mode and padding. 2022-12-28 14:55:56 +08:00
Looly
09a2dc3807 prepare 5.8.12 2022-12-27 22:14:45 +08:00
Looly
61dbf0ffe2 🐧release 5.8.11 2022-12-27 22:02:14 +08:00
Looly
433c0d3ae1 fix test 2022-12-27 21:52:01 +08:00
Looly
837489aa1a fix comment 2022-12-27 21:50:01 +08:00
Looly
582f9e7a8c 修复CoordinateUtil坐标转换参数错误 2022-12-27 21:40:59 +08:00
Looly
200c098b29 修复ConverterRegistry中无效加载导致的问题 2022-12-27 20:48:28 +08:00
Looly
379b10bbd5 BooleanUtil增加toString重载 2022-12-27 20:26:02 +08:00
Golden Looly
0cf4a8d6c1
Merge pull request #2816 from 847689421/v5-dev
BooleanUtil增加toString(Boolean bool, String trueString, String falseString, String nullString)方法
2022-12-27 20:25:27 +08:00
Looly
f9dbb4c587 修复sm2构造方法NullPointerException 2022-12-27 20:22:31 +08:00
Golden Looly
b596be1083
Merge pull request #2820 from CherryRum/lin_dev
fix: 修复sm2构造方法NullPointerException
2022-12-27 20:21:34 +08:00
Looly
f4c46d5b98 ServletUtil和JakartaServletUtil新增获取所有响应头的方法 2022-12-27 20:21:00 +08:00
Golden Looly
1a0c22b555
Merge pull request #2828 from Charles7c/v5-dev
新增获取所有响应头的方法
2022-12-27 20:14:08 +08:00
Looly
eec3590b7c CompressUtil 新增 stripComponents 参数 2022-12-27 20:10:01 +08:00
Looly
5d62517ad3
!904 CompressUtil 新增 stripComponents 参数
Merge pull request !904 from 不忘初心/v5-dev
2022-12-27 12:09:22 +00:00
Looly
1e11bd5da5 修复IndexedComparator导致的数据错乱问题(ExcelWriter使用部分别名导致字段丢失) 2022-12-27 19:59:35 +08:00
Looly
05c32a8f46 KeyUtil中的读取KeyStore文件的方法增加全局Provider 2022-12-27 19:52:33 +08:00
Looly
b78657f67f 修复UrlBuilder中参数中包括"://"判断错误问题 2022-12-27 19:41:52 +08:00
Looly
7ee9b163c4
!898 修复Gitee issue #I66CIR
Merge pull request !898 from Tom Xin/v5-dev-fix_#I66CIR
2022-12-27 11:37:11 +00:00
Looly
c5957beaa7 修复通过jdbcurl创建SimpleDataSource报NullPointException 2022-12-27 19:36:04 +08:00
Looly
0831176af6
!900 修复通过jdbcurl创建SimpleDataSource报NullPointException
Merge pull request !900 from Tom Xin/v5-dev-fix-create-mariadb-datasource
2022-12-27 11:35:26 +00:00
Looly
18ecdc09e4 修复JSONXMLSerializer将Json转为XML时,遇到嵌套需要递归情况时会丢失contentKeys问题 2022-12-27 19:34:24 +08:00
Looly
f4d73ee66e
!903 修复#I676IT
Merge pull request !903 from Xeons/v5-dev
2022-12-27 11:27:12 +00:00
bwcx_jzy
b92d98e286
feat CompressUtil 新增 stripComponents 参数 #I67MIK 2022-12-27 18:27:47 +08:00
YangXikun
7faa15c393 修复JSON转XML时,用户指定的contentKeys只对最外面一层的元素生效 2022-12-26 11:07:46 +08:00
Charles7c
8e33ba1799 新增获取所有响应头的方法 2022-12-25 15:23:48 +08:00
TomXin
9a5786798b 修复对mariadb的jdbcurl的解析 2022-12-23 11:01:44 +08:00
TomXin
0c31def7b8 修复Gitee issue #I66CIR 2022-12-21 17:16:13 +08:00
yulin
988e59eafd feature: 修复sm2构造方法NullPointerException
Closes https://gitee.com/dromara/hutool/issues/I66OCK
2022-12-20 12:53:02 +08:00
subin
d63d28106a BooleanUtil增加toString(Boolean bool, String trueString, String falseString, String nullString)方法 2022-12-19 22:18:16 +08:00
Looly
ecde508346 修复ZIP bomb漏洞 2022-12-14 16:29:39 +08:00
Golden Looly
edcbbb8396
Merge pull request #2804 from zhaoshengwolf/v5-master
解决FtpTest.java的downloadTest下载会将文件夹下载成文件的问题
2022-12-14 12:02:52 +08:00
zhaoshengwolf
c4c2bde0b4 解决FtpTest.java的downloadTest下载会将文件夹下载成文件的问题 2022-12-13 09:12:55 +00:00
Looly
3346ef025b fix doc 2022-12-11 16:25:12 +08:00
Looly
78a26c0f14 修复NamedSql中in没有判断大小写问题 2022-12-11 13:50:51 +08:00
Looly
e22cfdb8c9 update dependency 2022-12-07 00:05:36 +08:00
Looly
c0e1f905bf update dependency 2022-12-06 23:56:53 +08:00
Looly
d0916f8ffd add test 2022-12-06 23:53:32 +08:00
Looly
0d495e34b3 修复getMultistageReverseProxyIp未去除空格问题 2022-12-05 23:42:00 +08:00
Looly
d8283fedb0 修复JSON解析栈溢出部分问题 2022-11-29 23:11:36 +08:00
Looly
b0bfbd8ec3 修改PhoneUtil容易歧义的注释 2022-11-29 19:37:19 +08:00