DrSmoothl
2f5065545a
fix(onebot): percent-decode file URL basenames on upload ( #354 )
...
send_group_msg / send_private_msg with a file segment that only has
file:// (no name/filename) used url.split('/').pop() as the upload
name, so percent-encoded CJK paths uploaded as
%E6%B5%8B%E8%AF%95%E6%96%87%E4%BB%B6.xlsx. Derive the fallback through
guessFileNameFromUrl, which decodeURIComponent's the path basename
(invalid encodings are left as-is). An explicit name still wins.
Fixes #354
2026-08-13 11:02:02 +08:00
..
2026-08-11 23:46:46 +08:00
2026-08-13 00:20:40 +08:00
2026-07-13 23:15:10 +08:00
2026-07-09 19:18:09 +08:00
2026-07-31 11:21:12 +08:00
2026-07-21 23:27:01 +08:00
2026-07-19 19:20:14 +08:00
2026-06-30 23:09:21 +08:00
2026-08-05 23:55:55 +08:00
2026-07-25 20:28:28 +08:00
2026-08-01 18:27:42 +08:00
2026-07-20 22:25:13 +08:00
2026-07-14 03:39:27 +08:00
2026-05-21 08:27:05 +08:00
2026-08-13 11:02:02 +08:00
2026-07-25 23:43:59 +08:00
2026-07-25 23:43:59 +08:00
2026-08-01 21:11:02 +08:00
2026-07-24 12:58:57 +08:00
2026-07-30 10:27:43 +08:00
2026-07-31 23:21:05 +08:00
2026-08-01 17:02:39 +08:00
2026-06-16 19:20:55 +08:00
2026-06-16 19:30:54 +08:00
2026-07-05 02:29:13 +08:00
2026-08-01 18:12:04 +08:00
2026-07-21 19:28:17 +08:00
2026-07-31 13:09:02 +08:00
2026-07-01 18:53:34 +08:00
2026-07-24 12:58:57 +08:00
2026-07-24 12:58:57 +08:00
2026-07-24 12:58:57 +08:00
2026-08-04 23:13:32 +08:00
2026-07-15 16:12:51 +08:00
2026-08-01 17:02:39 +08:00
2026-08-01 18:12:04 +08:00
2026-07-31 11:21:12 +08:00
2026-06-18 15:31:50 +08:00
2026-08-06 23:08:19 +08:00
2026-07-31 12:40:51 +08:00
2026-08-13 01:33:57 +08:00
2026-07-31 11:21:12 +08:00
2026-08-01 16:36:33 +08:00
2026-07-15 16:12:51 +08:00
2026-07-15 16:12:03 +08:00
2026-08-01 16:36:33 +08:00
2026-06-24 21:10:53 +08:00
2026-06-24 22:55:51 +08:00
2026-06-24 21:35:27 +08:00
2026-06-18 14:32:24 +08:00
2026-08-01 16:50:08 +08:00
2026-08-13 01:33:57 +08:00
2026-07-31 17:38:51 +08:00