From c97957cf3e42b88f345408cd6d399bfe2da27f84 Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Tue, 14 Jul 2009 13:38:26 -0400 Subject: [PATCH] HTML "File"/attachments should probably not be considered enclosures. --- classes/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/File.php b/classes/File.php index 289c6e4418..56d9f98278 100644 --- a/classes/File.php +++ b/classes/File.php @@ -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){ -- 2.39.5