summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/helper.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/helper.php b/lib/helper.php
index 8e578735f4c..908a61b5a2d 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -370,6 +370,7 @@ class OC_Helper {
//trim the character set from the end of the response
$mimeType=substr($reply,0,strrpos($reply,' '));
+ $mimeType=substr($mimeType,0,strrpos($mimeType,"\n"));
//trim ;
if (strpos($mimeType, ';') !== false) {