mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 02:43:22 +01:00
Fix broken inline images because of wrong url
This commit is contained in:
parent
8105090e39
commit
e3ecdf2f41
@ -6759,7 +6759,7 @@ class Mail
|
|||||||
// do not change urls for absolute images (thanks to corvuscorax)
|
// do not change urls for absolute images (thanks to corvuscorax)
|
||||||
if (substr($url, 0, 5) !== 'data:')
|
if (substr($url, 0, 5) !== 'data:')
|
||||||
{
|
{
|
||||||
$filename = Vfs::basename($url);
|
$filename = basename($url); // need to resolve all sort of url
|
||||||
if (($directory = dirname($url)) == '.') $directory = '';
|
if (($directory = dirname($url)) == '.') $directory = '';
|
||||||
$ext = pathinfo($filename, PATHINFO_EXTENSION);
|
$ext = pathinfo($filename, PATHINFO_EXTENSION);
|
||||||
$mimeType = MimeMagic::ext2mime($ext);
|
$mimeType = MimeMagic::ext2mime($ext);
|
||||||
|
Loading…
Reference in New Issue
Block a user