* fix bug#244

This commit is contained in:
chencongzhi520@gmail.com
2011-09-18 01:41:01 +00:00
parent 6af4544fa4
commit 04e8b150b3
+1 -1
View File
@@ -192,7 +192,7 @@ class file extends control
$contentType = isset($mimes[$fileType]) ? $mimes[$fileType] : $mimes['default'];
header("Content-type: $contentType");
header("Content-Disposition: attachment; filename=$fileName");
header("Content-Disposition: attachment; filename=\"$fileName\"");
header("Pragma: no-cache");
header("Expires: 0");
die($content);