Added quotes to view attachment view to stop truncating filenames

This commit is contained in:
Karl Cordes 2013-04-09 19:37:04 +10:00
parent 65aaf2c0a2
commit fd7e9f798f

View file

@ -1,7 +1,7 @@
<?php if (file_exists($attachment['Attachment']['file'])) {
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.basename($attachment['Attachment']['filename']));
header('Content-Disposition: attachment; filename="'.basename($attachment['Attachment']['filename']).'"');
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate');