forked from extern/egroupware
Use abstraction to determine mime type, see 9a398594ac
This commit is contained in:
parent
146785d57a
commit
816db05496
@ -150,9 +150,9 @@ class File extends Etemplate\Widget
|
||||
// Don't trust what the browser tells us for mime
|
||||
if(function_exists('mime_content_type'))
|
||||
{
|
||||
$file['type'] = $type = mime_content_type($file['tmp_name']);
|
||||
$file['type'] = $type = Api\MimeMagic::analyze_file($file['tmp_name']);
|
||||
}
|
||||
|
||||
|
||||
// Mime check
|
||||
if($mime)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user