]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
If there is no mimetype set, the file shouldn't be considered an enclosure
authorCraig Andrews <candrews@integralblue.com>
Fri, 11 Sep 2009 01:21:01 +0000 (21:21 -0400)
committerCraig Andrews <candrews@integralblue.com>
Fri, 11 Sep 2009 01:21:01 +0000 (21:21 -0400)
classes/File.php

index 96a4de6e8e03b2070d0e2df4f15eb1db52d277c4..308d0a77176a63eb0ec563c8702096663c4d36b1 100644 (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){