Fixes problem with IRC URLs showing as attachments
This commit is contained in:
parent
1bf27de9b9
commit
92ded7c6cb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user