mirror of
https://github.com/docmost/docmost.git
synced 2025-11-13 11:52:37 +10:00
fix page export failure when title contains non-ASCII characters (#309)
This commit is contained in:
@ -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)}"`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user