ok, maybe now

This commit is contained in:
uh wot 2023-07-02 02:22:02 +02:00
parent 4bef255fe0
commit 2c0ce0f720
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.replace(/['\\]/g, (c) => `\\${c}`)}"`
content_disposition = `inline; filename="${filename.replaceAll('"', (c) => `\\${c}`)}"`
}
let init = { method: 'GET', headers: {} }