aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarijus <mario@localhost.localdomain>2014-01-30 00:33:46 +0100
committermarijus <mario@localhost.localdomain>2014-01-30 00:33:46 +0100
commit5e952e3738293ce24309fddaff04350e735e449a (patch)
treed83aa057d1052593e26aaca2a690b0058e1b41aa
parenteb02e6605ca35924acda98f6a75c90999c3d561f (diff)
parent1915add7c1c812a368540ece48209729329ced94 (diff)
downloadvolse-hubzilla-5e952e3738293ce24309fddaff04350e735e449a.tar.gz
volse-hubzilla-5e952e3738293ce24309fddaff04350e735e449a.tar.bz2
volse-hubzilla-5e952e3738293ce24309fddaff04350e735e449a.zip
Merge branch 'master' of https://github.com/friendica/red
-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..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');
@@ -39,4 +39,4 @@ function attach_init(&$a) {
echo $r['data']['data'];
killme();
-} \ No newline at end of file
+}