mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
fix: 发送文件包含特殊字符的处理
This commit is contained in:
parent
aee36e7ca3
commit
5affbdebb9
@ -4,7 +4,7 @@
|
||||
"name": "LLOneBot",
|
||||
"slug": "LLOneBot",
|
||||
"description": "实现 OneBot 11 和 Satori 协议,用于 QQ 机器人开发",
|
||||
"version": "4.4.0",
|
||||
"version": "4.4.1",
|
||||
"icon": "./icon.webp",
|
||||
"authors": [
|
||||
{
|
||||
|
@ -123,7 +123,7 @@ export async function uri2local(ctx: Context, uri: string, needExt?: boolean): P
|
||||
const { type } = checkUriType(uri)
|
||||
|
||||
if (type === FileUriType.FileURL) {
|
||||
const fileUri = uri.replace('%', '%25').replace('#', '%23')
|
||||
const fileUri = uri.replace(/%/g, '%25').replace(/#/g, '%23')
|
||||
const filePath = fileURLToPath(fileUri)
|
||||
const fileName = path.basename(filePath)
|
||||
// console.log('fileURLToPath', filePath)
|
||||
|
@ -1 +1 @@
|
||||
export const version = '4.4.0'
|
||||
export const version = '4.4.1'
|
||||
|
Loading…
x
Reference in New Issue
Block a user