fix: sanitize GEDO download filename
This commit is contained in:
@@ -76,7 +76,7 @@ export class InspectionReportsController {
|
||||
) {
|
||||
const content = await this.workflow.officialPdfContent(id);
|
||||
response.setHeader('Content-Type', content.mimeType);
|
||||
response.setHeader('Content-Disposition', `attachment; filename="${content.originalName.replaceAll('\"', '')}"`);
|
||||
response.setHeader('Content-Disposition', `attachment; filename="${content.originalName.replaceAll('"', '')}"`);
|
||||
return response.sendFile(content.filePath);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user