From 06c6cfa71ccd4ee0886567c5dcbea27d247eec00 Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 11 May 2018 15:00:12 -0600 Subject: [PATCH] Slightly more robust checking for "blank" HTML area in case CKEditor adds some styles --- 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 19379e4717..9b6288452b 100644 --- a/api/src/Html/HtmLawed.php +++ b/api/src/Html/HtmLawed.php @@ -212,7 +212,7 @@ class HtmLawed $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 = '#^.?$#us'; + $regex = '#^.?$#us'; if(preg_match($regex,$html)) { return '';