From 53a39759b3b53d3cbccfac269b5f7cc49b8a37b3 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Fri, 5 Aug 2016 16:27:21 +0530 Subject: [PATCH] CRM-19183 - Remove .pdf extension for dompdf --- CRM/Utils/PDF/Utils.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Utils/PDF/Utils.php b/CRM/Utils/PDF/Utils.php index 4c78d8d96b..61780970be 100644 --- a/CRM/Utils/PDF/Utils.php +++ b/CRM/Utils/PDF/Utils.php @@ -210,6 +210,8 @@ class CRM_Utils_PDF_Utils { return $dompdf->output(); } else { + // CRM-19183 remove .pdf extension from filename + $fileName = basename($fileName, ".pdf"); $dompdf->stream($fileName); } } -- 2.25.1