Code

Fixed undefined HTTP_USER_AGENT in function.inc send_binary_content().
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 21 May 2008 05:11:36 +0000 (05:11 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 21 May 2008 05:11:36 +0000 (05:11 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10970 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/functions.inc

index 85a2eb328e669e85f8a63f9179ad6249c62a4f90..18bac90a470d8c41a84dcec4c83fbffc25b70dee 100644 (file)
@@ -2672,6 +2672,8 @@ function send_binary_content($data,$name,$type = "application/octet-stream")
   header("Cache-Control: post-check=0, pre-check=0");
   header("Content-type: ".$type."");
 
+  $HTTP_USER_AGENT = $_SERVER['HTTP_USER_AGENT'];
+  
   /* 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.'"');