Skip to content

Commit

Permalink
File MIME bugfix. #252
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Jan 15, 2016
1 parent 355fc5d commit 5b67e42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public static function getStreamExt($stream)
{
$finfo = new finfo(FILEINFO_MIME);

$mime = $finfo->buffer($stream);
$mime = strstr($finfo->buffer($stream), ';', true);

return isset(self::$extensionMap[$mime]) ? self::$extensionMap[$mime] : '';
}
Expand Down

0 comments on commit 5b67e42

Please sign in to comment.