ok NOW it's fixed

This commit is contained in:
uh wot 2023-07-02 02:33:35 +02:00
parent daa8aa5da6
commit 975a8c65bf
Signed by: uhwot
GPG Key ID: CB2454984587B781
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ async function track(env, id, format, tagging, range_header, user_agent) {
if (user_agent === null || !user_agent.startsWith('TelegramBot')) {
content_disposition = `inline; filename*=UTF-8''${encodeRFC5987ValueChars(filename)}`
} else {
content_disposition = `inline; filename="${filename.replaceAll('"', '%22')}"`
content_disposition = `inline; filename="${encodeURIComponent(filename)}"`
}
let init = { method: 'GET', headers: {} }