From: Craig Andrews Date: Tue, 14 Jul 2009 17:38:26 +0000 (-0400) Subject: HTML "File"/attachments should probably not be considered enclosures. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c97957cf3e42b88f345408cd6d399bfe2da27f84;p=quix0rs-gnu-social.git HTML "File"/attachments should probably not be considered enclosures. --- 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){