xss defense

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9884 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-11-29 05:45:42 +00:00
parent bf1520da2b
commit a0839b5b1f
2 changed files with 5 additions and 1 deletions

View file

@ -251,6 +251,10 @@
$content_items[0]->setFirstThumbnailIdx($first_thumbnail_idx);
}
$oSecurity = new Security($content_items);
$oSecurity->encodeHTML('..variables.title', '..variables.content', '..variables.user_name', '..variables.nick_name');
return $content_items;
}