From 8584249eb2dba4f0fdd647c9bcb189ba3601727c Mon Sep 17 00:00:00 2001 From: enlineawork Date: Tue, 8 Sep 2026 15:23:03 -0300 Subject: [PATCH] fix: sanitize GEDO download filename --- api-v3/src/inspection-reports/inspection-reports.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-v3/src/inspection-reports/inspection-reports.controller.ts b/api-v3/src/inspection-reports/inspection-reports.controller.ts index 0dcdaf9..f194323 100644 --- a/api-v3/src/inspection-reports/inspection-reports.controller.ts +++ b/api-v3/src/inspection-reports/inspection-reports.controller.ts @@ -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); }