Skip to content
Snippets Groups Projects
Commit de1a1817 authored by Apparao G's avatar Apparao G
Browse files

#1792:Fixed:Special characters in inputs not supported across the CRM

parent cfae2310
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment