mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 17:48:56 +01:00
Decode html entities used in inline image sources because tinymce encodes them
This commit is contained in:
parent
d2cd36656a
commit
ebfa396195
@ -6789,7 +6789,10 @@ class Mail
|
||||
$ext = pathinfo($attachmentData['name'], PATHINFO_EXTENSION);
|
||||
$attachmentData['type'] = MimeMagic::ext2mime($ext);
|
||||
if ( strlen($directory) > 1 && !str_ends_with($directory, '/')) { $directory .= '/'; }
|
||||
$myUrl = $directory.$attachmentData['name'];
|
||||
|
||||
//decode entities because tinymce encodes (e.g. Umlautes) them otherwise file can't be found.
|
||||
$myUrl = html_entity_decode($directory.$attachmentData['name']);
|
||||
|
||||
if ($myUrl[0]=='/') // local path -> we only allow path's that are available via http/https (or vfs)
|
||||
{
|
||||
$basedir = Framework::getUrl('/');
|
||||
|
Loading…
Reference in New Issue
Block a user