A null mimetype is not an enclosure (more likely than not means there was an error)
This commit is contained in:
parent
20cb9fa28f
commit
74fd755556
@ -285,7 +285,7 @@ class File extends Memcached_DataObject
|
|||||||
$enclosure->mimetype=$this->mimetype;
|
$enclosure->mimetype=$this->mimetype;
|
||||||
|
|
||||||
if(! isset($this->filename)){
|
if(! isset($this->filename)){
|
||||||
$notEnclosureMimeTypes = array('text/html','application/xhtml+xml');
|
$notEnclosureMimeTypes = array(null,'text/html','application/xhtml+xml');
|
||||||
$mimetype = strtolower($this->mimetype);
|
$mimetype = strtolower($this->mimetype);
|
||||||
$semicolon = strpos($mimetype,';');
|
$semicolon = strpos($mimetype,';');
|
||||||
if($semicolon){
|
if($semicolon){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user