mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:18:57 +01:00
fixed not working mime parameter, if just a main type eg. "image" is given
This commit is contained in:
parent
8a4c9c0311
commit
930c9a9051
@ -661,7 +661,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