From c067e2ccb7fe377493282ceb4c352275a9818df7 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 11 Dec 2012 15:31:35 +0000 Subject: [PATCH] Do the check in a way that matches correctly for all --- phpgwapi/inc/class.html.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ''; }