Skip to content

Commit

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

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

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

0 comments on commit b34532b

Please sign in to comment.