mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 09:53:20 +01:00
Do the check in a way that matches correctly for all
This commit is contained in:
parent
cf5269f6d1
commit
c067e2ccb7
@ -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 = '/^<span style="font-family:'.$font.';font-size:'.$font_size.';">/';//​</span>/';
|
||||
if(strlen($html) == 75 && preg_match($regex,$html))
|
||||
$regex = '#^<span style="font-family:'.$font.';font-size:'.$font_size.';">.?</span>$#us';
|
||||
if(preg_match($regex,$html))
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user