diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-06-18 23:33:02 +0200 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-06-18 23:33:02 +0200 |
commit | c1df0539a087f2e8964357e96a05c6887b188c7f (patch) | |
tree | d6ad043a512ee048ddc4d3c1dfbc5a2a8fd1bcda /lib/helper.php | |
parent | c3cd3f357135ac21c00d089d0cce477122190b58 (diff) | |
download | nextcloud-server-c1df0539a087f2e8964357e96a05c6887b188c7f.tar.gz nextcloud-server-c1df0539a087f2e8964357e96a05c6887b188c7f.zip |
fixes oc-668
Diffstat (limited to 'lib/helper.php')
-rw-r--r-- | lib/helper.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/helper.php b/lib/helper.php index 2ded7b13c38..480c3fe930e 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 |