mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
Fix wrong condition on checking url strlen
This commit is contained in:
parent
0d7b29f6a1
commit
b6319bc18b
@ -391,7 +391,7 @@ 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']<400)))
|
||||
if (!(strlen($attribute_array['src'])>4 && strlen($attribute_array['src'])<400))
|
||||
{
|
||||
$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