fixed not working mime parameter, if just a main type eg. "image" is given

This commit is contained in:
Ralf Becker 2011-07-04 18:53:48 +00:00
parent 18d13804e6
commit 36eaa8e987

View File

@ -643,7 +643,7 @@ class egw_vfs extends vfs_stream_wrapper
{ {
list($type,$subtype) = explode('/',$options['mime']); list($type,$subtype) = explode('/',$options['mime']);
// no subtype (eg. 'image') --> check only the main type // 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 return; // wrong mime-type
} }