--- docman.php 2002/07/29 10:17:53 1.25 +++ docman.php 2002/07/29 10:29:04 1.26 @@ -1224,7 +1224,7 @@ $ext_arr = explode(".",$file); $ext = array_pop($ext_arr); - if ($encoding_ext[$ext]) { + if (isset($encoding_ext[$ext])) { $encoding = $encoding_ext[$ext]; $ext = array_pop($ext_arr); } @@ -1236,7 +1236,7 @@ } // IE5.5 just downloads index.php if we don't do this - if(preg_match("/MSIE 5.5/", $HTTP_SERVER_VARS[HTTP_USER_AGENT])) { + if(preg_match("/MSIE 5.5/", $HTTP_SERVER_VARS["HTTP_USER_AGENT"])) { header("Content-Disposition: filename=$file"); } else { header("Content-Disposition: attachment; filename=$file"); @@ -1463,7 +1463,7 @@ if (isset($tr)) { // first apply trustee for all - if (isset($tr['*'])) { + if (isset($tr['*']) && $user!="anonymous") { $perm = unroll_perm($user,$tr['*'],$perm, $one_level); unset($tr['*']); }