fix mimetype detection using the 'file' command in some edge cases

This commit is contained in:
Robin Appelman 2012-09-30 03:58:58 +02:00
parent f8eebcbb01
commit 258782584e
1 changed files with 1 additions and 0 deletions

View File

@ -370,6 +370,7 @@ class OC_Helper {
//trim the character set from the end of the response //trim the character set from the end of the response
$mimeType=substr($reply,0,strrpos($reply,' ')); $mimeType=substr($reply,0,strrpos($reply,' '));
$mimeType=substr($mimeType,0,strrpos($mimeType,"\n"));
//trim ; //trim ;
if (strpos($mimeType, ';') !== false) { if (strpos($mimeType, ';') !== false) {