diff --git a/include/functions.inc b/include/functions.inc
index 5243ce7aef61f356dffc0b68fc318607f8e0bfec..a120472697cca7ed6080fa00ac1e67958048da74 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();