Fixes problem with IRC URLs showing as attachments

This commit is contained in:
Nick Holliday 2010-03-24 23:30:27 +00:00 committed by Craig Andrews
parent 1bf27de9b9
commit 92ded7c6cb

View File

@ -286,7 +286,9 @@ class File extends Memcached_DataObject
if(! isset($this->filename)){
$notEnclosureMimeTypes = array(null,'text/html','application/xhtml+xml');
$mimetype = strtolower($this->mimetype);
if($mimetype != null){
$mimetype = strtolower($this->mimetype);
}
$semicolon = strpos($mimetype,';');
if($semicolon){
$mimetype = substr($mimetype,0,$semicolon);