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:55:15 +00:00
parent 8a4c9c0311
commit 930c9a9051

View File

@ -661,7 +661,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
} }