merge from 1.5.3.2 (embed white list, 11024,11028, 11029,11031,11034)

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.1@11035 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2012-08-17 07:19:27 +00:00
parent ef0fdbe038
commit d28e3e4176
25 changed files with 1651 additions and 2 deletions

View file

@ -775,8 +775,12 @@
* @return string
**/
function removeHackTag($content) {
require_once(_XE_PATH_.'classes/security/EmbedFilter.class.php');
$oEmbedFilter = EmbedFilter::getInstance();
$oEmbedFilter->check($content);
// change the specific tags to the common texts
$content = preg_replace('@<(\/?(?:html|body|head|title|meta|base|link|script|style|applet|iframe)(/*)[\w\s>])@i', '&lt;$1', $content);
$content = preg_replace('@<(\/?(?:html|body|head|title|meta|base|link|script|style|applet)(/*)[\w\s>])@i', '&lt;$1', $content);
/**
* Remove codes to abuse the admin session in src by tags of imaages and video postings