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:
Klaus Leithoff 2012-11-15 11:55:19 +00:00
parent f29f2f9c1a
commit bea130bc23

View File

@ -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']);