mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-01 03:29:05 +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);
|
$ext = pathinfo($attachmentData['name'], PATHINFO_EXTENSION);
|
||||||
$attachmentData['type'] = MimeMagic::ext2mime($ext);
|
$attachmentData['type'] = MimeMagic::ext2mime($ext);
|
||||||
if ( strlen($directory) > 1 && !str_ends_with($directory, '/')) { $directory .= '/'; }
|
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)
|
if ($myUrl[0]=='/') // local path -> we only allow path's that are available via http/https (or vfs)
|
||||||
{
|
{
|
||||||
$basedir = Framework::getUrl('/');
|
$basedir = Framework::getUrl('/');
|
||||||
|
Loading…
Reference in New Issue
Block a user