diff options
author | marijus <mario@localhost.localdomain> | 2014-01-30 00:33:46 +0100 |
---|---|---|
committer | marijus <mario@localhost.localdomain> | 2014-01-30 00:33:46 +0100 |
commit | 5e952e3738293ce24309fddaff04350e735e449a (patch) | |
tree | d83aa057d1052593e26aaca2a690b0058e1b41aa | |
parent | eb02e6605ca35924acda98f6a75c90999c3d561f (diff) | |
parent | 1915add7c1c812a368540ece48209729329ced94 (diff) | |
download | volse-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.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 +} |