filter script keyword from face specifications, as our _check_script_tag will not allow that anyway

This commit is contained in:
Klaus Leithoff 2015-10-15 08:38:33 +00:00
parent e4cca3a41b
commit e7a0826a80

View File

@ -160,6 +160,10 @@ function hl_my_tag_transform($element, $attribute_array=0)
{ {
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']);
} }
if (isset($attribute_array['face']))
{
if (stripos($attribute_array['face'],'script')!==false) $attribute_array['face']=str_ireplace('script','',$attribute_array['face']);
}
if ($element == 'blockquote') if ($element == 'blockquote')
{ {
if (isset($attribute_array['cite'])) if (isset($attribute_array['cite']))