From c1df0539a087f2e8964357e96a05c6887b188c7f Mon Sep 17 00:00:00 2001
From: Thomas Mueller <thomas.mueller@tmit.eu>
Date: Mon, 18 Jun 2012 23:33:02 +0200
Subject: [PATCH] fixes oc-668

---
 lib/helper.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/helper.php b/lib/helper.php
index 2ded7b13c3..480c3fe930 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
-- 
GitLab