From db7542b640d092ec22fef28c1c25c32edecc36b2 Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Tue, 19 Jun 2012 00:56:48 +0300 Subject: [PATCH] Reverting 249190c89bc1c2effd8aaad1052d9a0ccf0bfe37. Fixed in master --- lib/helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helper.php b/lib/helper.php index 7a36a8182d..3de7b3fdc1 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -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