summaryrefslogtreecommitdiff
path: root/framework/Web/THttpResponse.php
diff options
context:
space:
mode:
authorknut <>2007-02-08 11:37:58 +0000
committerknut <>2007-02-08 11:37:58 +0000
commit08fab57660b3cac36630ca6e2c4f677d1d7f2655 (patch)
tree9efed60d0fdb8b4c0ad6e3ed4a12a9f8648f6a71 /framework/Web/THttpResponse.php
parent628cb5bcb15a6759841e5ce1a95d489ccb00a201 (diff)
now it should be correct
Diffstat (limited to 'framework/Web/THttpResponse.php')
-rw-r--r--framework/Web/THttpResponse.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/THttpResponse.php b/framework/Web/THttpResponse.php
index 083a5a3e..04626b95 100644
--- a/framework/Web/THttpResponse.php
+++ b/framework/Web/THttpResponse.php
@@ -298,7 +298,7 @@ class THttpResponse extends TModule implements ITextWriter
}
header("Content-type: $mimeType");
header('Content-Length: '.($content===null?filesize($fileName):strlen($content)));
- header("Content-Disposition: attachment; filename=\"$displayName\"");
+ header("Content-Disposition: attachment; filename=\"$fn\"");
header('Content-Transfer-Encoding: binary');
if($content===null)
readfile($fileName);