aboutsummaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/helper.php')
-rw-r--r--lib/helper.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/helper.php b/lib/helper.php
index 73d4b659a34..37914b73e17 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -378,6 +378,12 @@ class OC_Helper {
//trim the character set from the end of the response
$mimeType=substr($reply,0,strrpos($reply,' '));
+
+ //trim ;
+ if (strpos($mimeType, ';') !== false) {
+ $mimeType = strstr($mimeType, ';', true);
+ }
+
}
if ($mimeType=='application/octet-stream') {
// Fallback solution: (try to guess the type by the file extension