Skip to content

Commit

Permalink
Fix mime-type detection
Browse files Browse the repository at this point in the history
  • Loading branch information
VicDeo committed Jun 18, 2012
1 parent b31962f commit 249190c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ static function getMimeType($path){
pclose($fp);

//trim the character set from the end of the response
$mimeType=substr($reply,0,strrpos($reply,' '));
$mimeType=substr($reply,0,strrpos($reply,';'));
}
if ($mimeType=='application/octet-stream') {
// Fallback solution: (try to guess the type by the file extension
Expand Down

0 comments on commit 249190c

Please sign in to comment.