fixes oc-668

This commit is contained in:
Thomas Mueller 2012-06-18 23:33:02 +02:00
parent c3cd3f3571
commit c1df0539a0
1 changed files with 6 additions and 0 deletions

View File

@ -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