From 5a5973982f6027e633917b1f0180432882dc9045 Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Wed, 29 Jan 2014 22:11:36 +0000 Subject: Really fix attachments in Firefox --- mod/attach.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/attach.php b/mod/attach.php index fd40791fe..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'); -- cgit v1.2.3