diff options
author | knut <> | 2007-02-08 11:37:58 +0000 |
---|---|---|
committer | knut <> | 2007-02-08 11:37:58 +0000 |
commit | 08fab57660b3cac36630ca6e2c4f677d1d7f2655 (patch) | |
tree | 9efed60d0fdb8b4c0ad6e3ed4a12a9f8648f6a71 | |
parent | 628cb5bcb15a6759841e5ce1a95d489ccb00a201 (diff) |
now it should be correct
-rw-r--r-- | framework/Web/THttpResponse.php | 2 |
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);
|