]> source.dussan.org Git - nextcloud-server.git/commitdiff
Reverting 249190c89bc1c2effd8aaad1052d9a0ccf0bfe37. Fixed in master
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>
Mon, 18 Jun 2012 21:56:48 +0000 (00:56 +0300)
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>
Mon, 18 Jun 2012 21:56:48 +0000 (00:56 +0300)
lib/helper.php

index 7a36a8182d5b9e88b16b7c5e987451cacc2fd848..3de7b3fdc107f7192770d525f44cd9f951309188 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