"fixed not working mime-type detection if filename contains more then one dot"

This commit is contained in:
Ralf Becker 2007-06-03 18:04:31 +00:00
parent a33363a884
commit b18cc760ac

View File

@ -1787,7 +1787,8 @@
}
else
{
list($_first,$_ext) = split("\.",$this->file);
$parts = explode('.',$this->file);
$_ext = array_pop($parts);
$mime_type = ExecMethod('phpgwapi.mime_magic.ext2mime',$_ext);
}
// check if the prefs are set for viewing unknown extensions as text/plain and