aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2014-01-29 20:38:32 +0000
committerThomas Willingham <founder@kakste.com>2014-01-29 20:38:32 +0000
commit5c54880ce89627ac932ae09fb85d57863b50d41c (patch)
tree2fb92dec0339b0f056aa504b0c3ce86630e315c4 /mod
parent286dca84a139ffa9dd2ab44669190a4d8e49223b (diff)
downloadvolse-hubzilla-5c54880ce89627ac932ae09fb85d57863b50d41c.tar.gz
volse-hubzilla-5c54880ce89627ac932ae09fb85d57863b50d41c.tar.bz2
volse-hubzilla-5c54880ce89627ac932ae09fb85d57863b50d41c.zip
Make Firefox behave if an attachment points to a file with a space in it.
Diffstat (limited to 'mod')
-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..fd40791fe 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
+}