mirror of
https://github.com/docmost/docmost.git
synced 2025-11-19 00:21:11 +10:00
fix page export failure when title contains non-ASCII characters (#309)
This commit is contained in:
@ -61,7 +61,8 @@ export class ImportController {
|
||||
|
||||
res.headers({
|
||||
'Content-Type': getMimeType(fileExt),
|
||||
'Content-Disposition': 'attachment; filename="' + fileName + '"',
|
||||
'Content-Disposition':
|
||||
'attachment; filename="' + encodeURIComponent(fileName) + '"',
|
||||
});
|
||||
|
||||
res.send(rawContent);
|
||||
|
||||
Reference in New Issue
Block a user