From b7903c3b65bb909b76a9301420bb1b6ca790b043 Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Tue, 24 Feb 2015 18:21:14 +0000 Subject: [PATCH] Fax Server: Sent - Removed "application/download" content type, was causing file type to be mis-identified in FireFox. --- app/fax/fax_box.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/fax/fax_box.php b/app/fax/fax_box.php index 9cca0cd678..3540bad113 100644 --- a/app/fax/fax_box.php +++ b/app/fax/fax_box.php @@ -114,12 +114,12 @@ else { //test to see if it is in the inbox or sent directory. if ($_GET['type'] == "fax_inbox") { if (file_exists($fax_dir.'/'.check_str($_GET['ext']).'/inbox/'.check_str($_GET['filename']))) { - $tmp_faxdownload_file = "".$fax_dir.'/'.check_str($_GET['ext']).'/inbox/'.check_str($_GET['filename']); + $tmp_faxdownload_file = $fax_dir.'/'.check_str($_GET['ext']).'/inbox/'.check_str($_GET['filename']); } } else if ($_GET['type'] == "fax_sent") { if (file_exists($fax_dir.'/'.check_str($_GET['ext']).'/sent/'.check_str($_GET['filename']))) { - $tmp_faxdownload_file = "".$fax_dir.'/'.check_str($_GET['ext']).'/sent/'.check_str($_GET['filename']); + $tmp_faxdownload_file = $fax_dir.'/'.check_str($_GET['ext']).'/sent/'.check_str($_GET['filename']); } } //let's see if we found it. @@ -128,7 +128,6 @@ else { if ($_GET['t'] == "bin") { header("Content-Type: application/force-download"); header("Content-Type: application/octet-stream"); - header("Content-Type: application/download"); header("Content-Description: File Transfer"); header('Content-Disposition: attachment; filename="'.check_str($_GET['filename']).'"'); }