summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-09-10 21:21:01 -0400
committerCraig Andrews <candrews@integralblue.com>2009-09-10 21:21:01 -0400
commit2a06f2ac5bac02dea23b63c8d256a17f316039c1 (patch)
tree0bc3dfc9bb86529a4bbaaee9e7682d5381844f91 /classes
parent292bb7c4d8ca469447385e29a80f125e03284d70 (diff)
If there is no mimetype set, the file shouldn't be considered an enclosure
Diffstat (limited to 'classes')
-rw-r--r--classes/File.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/File.php b/classes/File.php
index 96a4de6e8..308d0a771 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){