mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
if style stuff contains e.g. font-family: Kunstler Script EGroupware Script detection complains about script tags when posting such content. So we remove Script from inline style definition
This commit is contained in:
parent
f29f2f9c1a
commit
bea130bc23
@ -174,6 +174,7 @@ function hl_my_tag_transform($element, $attribute_array=0)
|
||||
$attribute_array['style'] = implode('; ', $style);
|
||||
}
|
||||
*/
|
||||
if (isset($attribute_array['style']) && stripos($attribute_array['style'],'script')!==false) $attribute_array['style'] = str_ireplace('script','',$attribute_array['style']);
|
||||
|
||||
// Build the attributes string
|
||||
$attributes = '';
|
||||
@ -249,6 +250,7 @@ function hl_email_tag_transform($element, $attribute_array=0)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($attribute_array['style']) && stripos($attribute_array['style'],'script')!==false) $attribute_array['style'] = str_ireplace('script','',$attribute_array['style']);
|
||||
if (isset($attribute_array['title']))
|
||||
{
|
||||
if (strpos($attribute_array['title'],'@')!==false) $attribute_array['title']=str_replace('@','(at)',$attribute_array['title']);
|
||||
|
Loading…
Reference in New Issue
Block a user