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

remotes/origin/stable45
Robin Appelman 13 years ago
parent f8eebcbb01
commit 258782584e
  1. 1
      lib/helper.php

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

Loading…
Cancel
Save