From: Craig Andrews Date: Fri, 11 Sep 2009 01:21:01 +0000 (-0400) Subject: If there is no mimetype set, the file shouldn't be considered an enclosure X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2a06f2ac5bac02dea23b63c8d256a17f316039c1;p=quix0rs-gnu-social.git If there is no mimetype set, the file shouldn't be considered an enclosure --- diff --git a/classes/File.php b/classes/File.php index 96a4de6e8e..308d0a7717 100644 --- a/classes/File.php +++ b/classes/File.php @@ -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){