If there is no mimetype set, the file shouldn't be considered an enclosure

This commit is contained in:
Craig Andrews 2009-09-10 21:21:01 -04:00
parent 292bb7c4d8
commit 2a06f2ac5b
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ class File extends Memcached_DataObject
if(isset($this->filename)){
return true;
}
$notEnclosureMimeTypes = array('text/html','application/xhtml+xml');
$notEnclosureMimeTypes = array('text/html','application/xhtml+xml',null);
$mimetype = strtolower($this->mimetype);
$semicolon = strpos($mimetype,';');
if($semicolon){