fixes oc-668

remotes/origin/stable4
Thomas Mueller 13 years ago
parent 1b142a1155
commit 637f8398ba
  1. 6
      lib/helper.php

@ -377,6 +377,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

Loading…
Cancel
Save