From 04e8b150b35527cd628b0c36b5fd9d2017f35dab Mon Sep 17 00:00:00 2001 From: "chencongzhi520@gmail.com" Date: Sun, 18 Sep 2011 01:41:01 +0000 Subject: [PATCH] * fix bug#244 --- module/file/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/file/control.php b/module/file/control.php index c66712e232..7b024fa476 100644 --- a/module/file/control.php +++ b/module/file/control.php @@ -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);