diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php index 693ce6a60c..aadcad43ad 100644 --- a/phpgwapi/inc/class.html.inc.php +++ b/phpgwapi/inc/class.html.inc.php @@ -1344,8 +1344,8 @@ class html $font_size = $GLOBALS['egw_info']['user']['preferences']['common']['rte_font_size']; // Check for "blank" = just user preference span - for some reason we can't match on the entity, so approximate - $regex = '/^/';//​/'; - if(strlen($html) == 75 && preg_match($regex,$html)) + $regex = '#^.?$#us'; + if(preg_match($regex,$html)) { return ''; }