aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2014-01-29 22:11:36 +0000
committerThomas Willingham <founder@kakste.com>2014-01-29 22:11:36 +0000
commit5a5973982f6027e633917b1f0180432882dc9045 (patch)
tree041f73f60992f9a61472da6cc0fc339dcc9867c1 /mod
parent34b7b544cd9d327800ab411df724fb5e80eeb34e (diff)
downloadvolse-hubzilla-5a5973982f6027e633917b1f0180432882dc9045.tar.gz
volse-hubzilla-5a5973982f6027e633917b1f0180432882dc9045.tar.bz2
volse-hubzilla-5a5973982f6027e633917b1f0180432882dc9045.zip
Really fix attachments in Firefox
Diffstat (limited to 'mod')
-rw-r--r--mod/attach.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/attach.php b/mod/attach.php
index fd40791fe..d0d3296e1 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');