From de1a1817a393c4217adaf7d3e3c7224f3b5ee84f Mon Sep 17 00:00:00 2001 From: appu <apparao@vtiger.com> Date: Fri, 27 Oct 2023 18:10:45 +0530 Subject: [PATCH] #1792:Fixed:Special characters in inputs not supported across the CRM --- modules/Vtiger/helpers/ShowFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Vtiger/helpers/ShowFile.php b/modules/Vtiger/helpers/ShowFile.php index 18765b766..5de3ae7e3 100644 --- a/modules/Vtiger/helpers/ShowFile.php +++ b/modules/Vtiger/helpers/ShowFile.php @@ -67,12 +67,12 @@ class Vtiger_ShowFile_Helper { $handle = fopen($finalFilePath, "rb"); $contents = fread($handle, filesize($finalFilePath)); fclose($handle); - //added since other than image files we need file names, other wise it downloads with public.php extension which is treated as dangerous if($sanitizedFileName) { header("Content-Disposition: attachment; filename=\"$sanitizedFileName\""); } header("Content-Type: $fileType;charset=UTF-8"); + ob_end_clean(); echo $contents; } } -- GitLab