Commit Graph

2689 Commits

Author SHA1 Message Date
Looly
9994083fe1 修复ClassScanner自定义classload无效问题 2023-01-17 17:30:45 +08:00
Looly
9183a9100e DesensitizedUtil增加对IPv4和IPv6支持 2023-01-17 17:07:18 +08:00
Looly
b958f9f9d2 修复IoUtil.readBytes使用SocketInputStream读取不完整问题 2023-01-17 16:40:45 +08:00
Looly
b212fdc685 修复FileUtil的rename在newName与原文件夹名称一样时,文件夹会被删除问题 2023-01-15 11:35:31 +08:00
Golden Looly
c80fc89952
Merge pull request #2811 from bigbeef/v5-master
WGS84 坐标与墨卡托投影互转
2023-01-15 11:28:26 +08:00
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
554b828745 XmlUtil.readObjectFromXml增加注入漏洞的警告注释,并标识为废弃 2023-01-15 11:08:09 +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
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
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
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
1e11bd5da5 修复IndexedComparator导致的数据错乱问题(ExcelWriter使用部分别名导致字段丢失) 2022-12-27 19:59:35 +08:00
Looly
b78657f67f 修复UrlBuilder中参数中包括"://"判断错误问题 2022-12-27 19:41:52 +08:00
大黄蜂coder
1950b783ab
修正20037508不不准确的问题 2022-12-26 17:08:36 +08:00
TomXin
0c31def7b8 修复Gitee issue #I66CIR 2022-12-21 17:16:13 +08:00
subin
d63d28106a BooleanUtil增加toString(Boolean bool, String trueString, String falseString, String nullString)方法 2022-12-19 22:18:16 +08:00
大黄蜂coder
bc306e56de
WGS84 坐标与墨卡托投影互转
WGS84 坐标与墨卡托投影互转
2022-12-15 18:24:46 +08:00
Looly
ecde508346 修复ZIP bomb漏洞 2022-12-14 16:29:39 +08:00
Looly
3346ef025b fix doc 2022-12-11 16:25:12 +08:00
Looly
0d495e34b3 修复getMultistageReverseProxyIp未去除空格问题 2022-12-05 23:42:00 +08:00
Looly
b0bfbd8ec3 修改PhoneUtil容易歧义的注释 2022-11-29 19:37:19 +08:00
Looly
c3470ab288 Merge branch 'v5-dev' of github.com:dromara/hutool into v5-dev 2022-11-28 10:26:38 +08:00
Golden Looly
5f10d2d025
Merge pull request #2755 from LuisStruggle/v5-dev
HtmlUtil中escape方法,增加不断开空格(nbsp)转译,防止xss攻击
2022-11-28 10:23:11 +08:00
Looly
5aa8e9d9a6 add test 2022-11-28 10:22:40 +08:00
Looly
d29b87c36f SyncFinisher线程同步结束器添加立即结束方法 2022-11-26 12:13:39 +08:00
Looly
8767b1edc1
!879 线程同步结束器添加立即结束方法
Merge pull request !879 from 不忘初心/v5-dev
2022-11-26 04:11:16 +00:00
Looly
d6134f707d 修复BiMap中未重写computeIfAbsent和putIfAbsent导致双向查找出问题 2022-11-26 12:07:20 +08:00
bwcx_jzy
7c8cc27ad9
线程同步结束器添加立即结束方法 2022-11-25 13:17:58 +08:00
Looly
4e06f02610 修复HexUtil.isHexNumber()判断逻辑超出long的精度问题 2022-11-24 13:33:12 +08:00
Looly
26771b2853 修复ArrayUtil.insert()不支持原始类型数组的问题 2022-11-24 13:29:52 +08:00
LuisStruggle
31bcd02732 html防止注入转译,增加不断开空格(nbsp)转译 2022-11-24 10:53:32 +08:00
Looly
ff0e3ea52b CharUtil.isBlankChar增加\u180e 2022-11-17 12:05:05 +08:00
Looly
052b0dc8d3 prepare 5.8.11 2022-11-17 09:19:20 +08:00
Looly
47479f45a7 🐶release 5.8.10 2022-11-17 09:01:29 +08:00
Looly
8db6cb041b add test 2022-11-17 02:17:39 +08:00
Looly
a4e7ee5c91
!867 修复字节数组转float 返回类型却是double的bug
Merge pull request !867 from sony_7/v5-master
2022-11-16 17:24:38 +00:00
zhangqq
5bd8a298ba 修复字节数组转float 返回的值却是double类型的bug 2022-11-14 19:22:54 +08:00
Looly
8ff1368f30 修复BeanUtil.copyProperties 包含EnumSet ,类型转换异常问题 2022-11-12 19:46:57 +08:00
Golden Looly
47198cc819
Merge pull request #2684 from lianyiwuming/v5-dev
修复bug https://github.com/dromara/hutool/issues/2683
2022-11-12 19:12:23 +08:00
yulin
3240406aa9 refactor(DateUtil、LocalDateTimeUtil): 添加区间退化为点,点与区间,点与点之间关系判断。
Closes https://gitee.com/dromara/hutool/issues/I60JMT
2022-11-10 22:29:02 +08:00
Looly
fa115dffbc 回滚 2022-11-10 12:11:56 +08:00
Golden Looly
7a10881d30
Merge pull request #2723 from kiritoowo/v5-dev
1.[bug修复] key为弱引用 value为强引用 会导致key无法被回收 弱引用失效
2022-11-10 11:16:53 +08:00
Looly
ece502c526 修复ChineseDate传入农历日期非闰月时获取公历错误问题 2022-11-10 09:58:26 +08:00
Looly
3b98f64924 优化BeanPath.set方法,避免多次重复调用get方法 2022-11-10 09:30:32 +08:00
ljm
7152b5b21f 1.修复BUG key为弱引用 value为强引用 会导致key无法被回收 弱引用失效 2022-11-09 18:45:05 +08:00