From 5c54880ce89627ac932ae09fb85d57863b50d41c Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Wed, 29 Jan 2014 20:38:32 +0000 Subject: Make Firefox behave if an attachment points to a file with a space in it. --- mod/attach.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod') 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 +} -- cgit v1.2.3