]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix mime-type detection
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>
Mon, 18 Jun 2012 21:19:57 +0000 (00:19 +0300)
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>
Mon, 18 Jun 2012 21:20:33 +0000 (00:20 +0300)
lib/helper.php

index 3de7b3fdc107f7192770d525f44cd9f951309188..7a36a8182d5b9e88b16b7c5e987451cacc2fd848 100644 (file)
@@ -376,7 +376,7 @@ class OC_Helper {
                        pclose($fp);
 
                        //trim the character set from the end of the response
-                       $mimeType=substr($reply,0,strrpos($reply,' '));
+                       $mimeType=substr($reply,0,strrpos($reply,';'));
                }
                if ($mimeType=='application/octet-stream') {
                        // Fallback solution: (try to guess the type by the file extension