aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-29 15:27:41 -0800
committerfriendica <info@friendica.com>2014-01-29 15:27:41 -0800
commit777d4e1ddb0d6c10be74d797dc930cb8df6923b0 (patch)
treeaae6c3db6365e43f921ff5bf8214a92c41b3dd30
parent9df2082b841044dec42244974c2fc94bf8617675 (diff)
parent5a5973982f6027e633917b1f0180432882dc9045 (diff)
downloadvolse-hubzilla-777d4e1ddb0d6c10be74d797dc930cb8df6923b0.tar.gz
volse-hubzilla-777d4e1ddb0d6c10be74d797dc930cb8df6923b0.tar.bz2
volse-hubzilla-777d4e1ddb0d6c10be74d797dc930cb8df6923b0.zip
Merge pull request #289 from beardy-unixer/master
Make Firefox behave if an attachment points to a file with a space in it...
-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
+}