From 75d1ee512ec97e585c4bf94583d14676e1d90983 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be>
Date: Thu, 6 Apr 2017 15:04:22 +0200
Subject: [PATCH] Fixes #5469 Also removed MSIE 5&6 specific treatment

---
 include/functions.inc | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/include/functions.inc b/include/functions.inc
index 5243ce7ae..a12047269 100644
--- a/include/functions.inc
+++ b/include/functions.inc
@@ -2376,9 +2376,7 @@ function send_binary_content($data, $name, $type = "application/octet-stream")
   header("Cache-Control: no-cache");
   header("Pragma: no-cache");
   header("Cache-Control: post-check=0, pre-check=0");
-  header("Content-type: ".$type."");
-
-  $HTTP_USER_AGENT = $_SERVER['HTTP_USER_AGENT'];
+  header("Content-type: ".$type);
 
   /* Strip name if it is a complete path */
   if (preg_match ("/\//", $name)) {
@@ -2386,11 +2384,7 @@ function send_binary_content($data, $name, $type = "application/octet-stream")
   }
 
   /* force download dialog */
-  if (preg_match('/MSIE 5.5/', $HTTP_USER_AGENT) || preg_match('/MSIE 6.0/', $HTTP_USER_AGENT)) {
-    header('Content-Disposition: filename="'.$name.'"');
-  } else {
-    header('Content-Disposition: attachment; filename="'.$name.'"');
-  }
+  header('Content-Disposition: attachment; filename="'.$name.'"');
 
   echo $data;
   exit();
-- 
GitLab