applet 태그에 대해 관리자가 작성한 글이 아니라면 태그 동작을 하지 않도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6343 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-05-20 05:11:37 +00:00
parent 01a374c403
commit b476c02ee2

View file

@ -524,7 +524,7 @@
**/
function removeHackTag($content) {
// 특정 태그들을 일반 문자로 변경
$content = preg_replace('/<(\/?)(iframe|script|meta|style)/is', '&lt;$1$2', $content);
$content = preg_replace('/<(\/?)(iframe|script|meta|style|applet)/is', '&lt;$1$2', $content);
// XSS 사용을 위한 이벤트 제거
$content = preg_replace_callback("!<([a-z]+)(.*?)>!is", removeJSEvent, $content);