From b6319bc18babce3ec8a33c065d74d2ac07bf086a Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 6 Oct 2021 11:09:32 +0200 Subject: [PATCH] Fix wrong condition on checking url strlen --- api/src/Html/HtmLawed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Html/HtmLawed.php b/api/src/Html/HtmLawed.php index f13c1ded9a..770c96dc84 100644 --- a/api/src/Html/HtmLawed.php +++ b/api/src/Html/HtmLawed.php @@ -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'];