mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
"fixed not working mime-type detection if filename contains more then one dot"
This commit is contained in:
parent
a33363a884
commit
b18cc760ac
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user