aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mod/attach.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/attach.php b/mod/attach.php
index c52966ce0..fd40791fe 100644
--- a/mod/attach.php
+++ b/mod/attach.php
@@ -25,7 +25,7 @@ function attach_init(&$a) {
return;
header('Content-type: ' . $r['data']['filetype']);
- header('Content-disposition: attachment; filename=' . $r['data']['filename']);
+ header('Content-disposition: attachment; filename="' . $r['data']['filename']);
if($r['data']['flags'] & ATTACH_FLAG_OS ) {
$istream = fopen('store/' . $c[0]['channel_address'] . '/' . $r['data']['data'],'rb');
$ostream = fopen('php://output','wb');
@@ -39,4 +39,4 @@ function attach_init(&$a) {
echo $r['data']['data'];
killme();
-} \ No newline at end of file
+}