From: hickert Date: Wed, 21 May 2008 05:11:36 +0000 (+0000) Subject: Fixed undefined HTTP_USER_AGENT in function.inc send_binary_content(). X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=59b10ade0de814bfaf6610522c29e607aa204c61;p=gosa.git Fixed undefined HTTP_USER_AGENT in function.inc send_binary_content(). git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10970 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 85a2eb328..18bac90a4 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -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.'"');