mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
XSS Defence
git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@12560 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ef5aa0b93f
commit
f69cfd442b
1 changed files with 1 additions and 1 deletions
|
|
@ -780,7 +780,7 @@
|
|||
$oEmbedFilter->check($content);
|
||||
|
||||
// change the specific tags to the common texts
|
||||
$content = preg_replace('@<(\/?(?:html|body|head|title|meta|base|link|script|style|applet)(/*)[\w\s>])@i', '<$1', $content);
|
||||
$content = preg_replace('@<(\/?(?:html|body|head|title|meta|base|link|script|style|applet)(/*).*?>)@i', '<$1', $content);
|
||||
|
||||
/**
|
||||
* Remove codes to abuse the admin session in src by tags of imaages and video postings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue