XSS Defense

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10794 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2012-06-26 01:02:16 +00:00
parent f8ae6f9885
commit 7c5ed1b2b5

View file

@ -776,7 +776,7 @@
**/
function removeHackTag($content) {
// change the specific tags to the common texts
$content = preg_replace('@<(\/?(?:html|body|head|title|meta|base|link|script|style|applet|iframe)[\s>])@i', '&lt;$1', $content);
$content = preg_replace('@<(\/?(?:html|body|head|title|meta|base|link|script|style|applet|iframe)(/*)[\w\s>])@i', '&lt;$1', $content);
/**
* Remove codes to abuse the admin session in src by tags of imaages and video postings