ok, maybe now
This commit is contained in:
parent
4bef255fe0
commit
2c0ce0f720
|
@ -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: {} }
|
||||
|
|
Loading…
Reference in New Issue