HTML "File"/attachments should probably not be considered enclosures.

This commit is contained in:
Craig Andrews 2009-07-14 13:38:26 -04:00
parent 593af9feb6
commit c97957cf3e

View File

@ -198,7 +198,7 @@ class File extends Memcached_DataObject
if(isset($this->filename)){
return true;
}
$notEnclosureMimeTypes = array('text/html');
$notEnclosureMimeTypes = array('text/html','application/xhtml+xml');
$mimetype = strtolower($this->mimetype);
$semicolon = strpos($mimetype,';');
if($semicolon){