forked from extern/egroupware
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);
|
$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
|
// Build the attributes string
|
||||||
$attributes = '';
|
$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 (isset($attribute_array['title']))
|
||||||
{
|
{
|
||||||
if (strpos($attribute_array['title'],'@')!==false) $attribute_array['title']=str_replace('@','(at)',$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