fix page export failure when title contains non-ASCII characters (#309)

This commit is contained in:
Philip Okugbe
2024-09-13 17:40:24 +01:00
committed by GitHub
parent be0d97661a
commit 0b6730c06f
3 changed files with 11 additions and 7 deletions

View File

@ -182,7 +182,7 @@ export class AttachmentController {
if (!inlineFileExtensions.includes(attachment.fileExt)) {
res.header(
'Content-Disposition',
`attachment; filename="${attachment.fileName}"`,
`attachment; filename="${encodeURIComponent(attachment.fileName)}"`,
);
}