diff options
author | Michael Meer <michael@meer.name> | 2014-01-30 10:21:21 +0100 |
---|---|---|
committer | Michael Meer <michael@meer.name> | 2014-01-30 10:21:21 +0100 |
commit | e5d1e20ff50f49909e7df6fe7efe0d7488e58eaa (patch) | |
tree | a3e0b7d7e1f9a4a8a2af39d5c8fad8d62f0411a3 /mod/attach.php | |
parent | ef97a454bbccbd9f7e0e63180c365ed3227fe42c (diff) | |
parent | 6c6a9b963a925d33b2cc436d877a4edc5f0d59b1 (diff) | |
download | volse-hubzilla-e5d1e20ff50f49909e7df6fe7efe0d7488e58eaa.tar.gz volse-hubzilla-e5d1e20ff50f49909e7df6fe7efe0d7488e58eaa.tar.bz2 volse-hubzilla-e5d1e20ff50f49909e7df6fe7efe0d7488e58eaa.zip |
Merge branch 'master' of https://github.com/friendica/red
to be in sync with master repro
Diffstat (limited to 'mod/attach.php')
-rw-r--r-- | mod/attach.php | 4 |
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 +} |