mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
* Mail: explicitly allow data-uris of arbitrary length for images (were shown as red questionmark, when longer then 800 chars)
This commit is contained in:
parent
6b13b909ff
commit
d574a85cd1
@ -389,7 +389,9 @@ function hl_email_tag_transform($element, $attribute_array=0)
|
||||
// $GLOBALS['egw_info']['user']['preferences']['mail']['allowExternalIMGs'] ? '' : 'match' => '/^cid:.*/'),
|
||||
if (isset($attribute_array['src']))
|
||||
{
|
||||
if (!(strlen($attribute_array['src'])>4 && strlen($attribute_array['src'])<800))
|
||||
// explicitly exclude data-uris of images from the length limit of 800 chars
|
||||
if (!preg_match('#^data:image/[a-z]+;base64,#i',$attribute_array['src']) &&
|
||||
!(strlen($attribute_array['src'])>4 && strlen($attribute_array['src'])<800))
|
||||
{
|
||||
$attribute_array['alt']= $attribute_array['alt'].' [blocked (reason: url length):'.$attribute_array['src'].']';
|
||||
if (!isset($attribute_array['title'])) $attribute_array['title']=$attribute_array['alt'];
|
||||
|
Loading…
Reference in New Issue
Block a user