changed to escape quotation marks in filenames
This commit is contained in:
parent
b868166b89
commit
30a7c29192
File diff suppressed because one or more lines are too long
2
index.js
2
index.js
|
@ -309,7 +309,7 @@ async function track(id, format, tagging) {
|
||||||
|
|
||||||
const headers = {
|
const headers = {
|
||||||
'content-type': formats[format].mime,
|
'content-type': formats[format].mime,
|
||||||
'content-disposition': `inline; filename="${title.replaceAll('"', '_')} [${id}].${formats[format].ext}"`
|
'content-disposition': `inline; filename="${title.replaceAll('"', '\\"')} [${id}].${formats[format].ext}"`
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Response(readable, { status: 200, headers })
|
return new Response(readable, { status: 200, headers })
|
||||||
|
|
Loading…
Reference in New Issue