If there is no mimetype set, the file shouldn't be considered an enclosure
This commit is contained in:
parent
292bb7c4d8
commit
2a06f2ac5b
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue
Block a user