fix: sanitize GEDO download filename

This commit is contained in:
2026-09-08 15:23:03 -03:00
parent 5dc7ea037d
commit 8584249eb2
@@ -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);
}