mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
fixed not working mime parameter, if just a main type eg. "image" is given
This commit is contained in:
parent
18d13804e6
commit
36eaa8e987
@ -643,7 +643,7 @@ class egw_vfs extends vfs_stream_wrapper
|
||||
{
|
||||
list($type,$subtype) = explode('/',$options['mime']);
|
||||
// no subtype (eg. 'image') --> check only the main type
|
||||
if ($sub_type || substr($mime,0,strlen($type)+1) != $type.'/')
|
||||
if ($sub_type || substr($stat['mime'],0,strlen($type)+1) != $type.'/')
|
||||
{
|
||||
return; // wrong mime-type
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user