mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 04:41:41 +02:00
* eMail: use different image to show that a image was not loaded (due to allowExternalIMGs=no)
This commit is contained in:
parent
6378d289ca
commit
f231144c03
@ -248,7 +248,12 @@ function hl_email_tag_transform($element, $attribute_array=0)
|
|||||||
{
|
{
|
||||||
$attribute_array['alt']= $attribute_array['alt'].' [blocked external image:'.$attribute_array['src'].']';
|
$attribute_array['alt']= $attribute_array['alt'].' [blocked external image:'.$attribute_array['src'].']';
|
||||||
if (!isset($attribute_array['title'])) $attribute_array['title']=$attribute_array['alt'];
|
if (!isset($attribute_array['title'])) $attribute_array['title']=$attribute_array['alt'];
|
||||||
$attribute_array['src']=common::image('phpgwapi','dialog_error');
|
$attribute_array['src']=common::image('felamimail','no-image-shown');
|
||||||
|
$attribute_array['border'] = 1;
|
||||||
|
if ($attribute_array['style'])
|
||||||
|
{
|
||||||
|
if (stripos($attribute_array['style'],'border')!==false) $attribute_array['style'] = preg_replace('~border(:|-left:|-right:|-bottom:|-top:)+ (0px)+ (none)+;~si','',$attribute_array['style']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user