From fa104fee17b36e619792599ab7fb921f95285833 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Mon, 19 Mar 2012 12:41:10 +0100 Subject: [PATCH] fix mimetype detection --- lib/helper.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/helper.php b/lib/helper.php index 0c6c73aa76b..75942f092cf 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -284,9 +284,7 @@ class OC_Helper { $isWrapped=(strpos($path,'://')!==false) and (substr($path,0,7)=='file://'); $mimeType='application/octet-stream'; if ($mimeType=='application/octet-stream') { - if(count(self::$mimetypes)>0){ - self::$mimetypes = include('mimetypes.fixlist.php'); - } + self::$mimetypes = include('mimetypes.fixlist.php'); $extention=strtolower(strrchr(basename($path), ".")); $extention=substr($extention,1);//remove leading . $mimeType=(isset(self::$mimetypes[$extention]))?self::$mimetypes[$extention]:'application/octet-stream'; -- 2.39.5