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:35:35 +00:00
parent 211056ba2e
commit 412414c1a5

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