여분필드에 iframe 넣으려면 어떻게 해야 하죠
<iframe height=498 width=510 src=\"http://www.aaa.com\" frameborder=0 allowfullscreen></iframe>
\ 요너미 자꾸 붙네요
그누보드 / lib / common.lib.php
return preg_replace("/\<([\/]?)(script|iframe)([^\>]*)\>?/i", "<$1$2$3>", $code);
를 아래와 같이 변경
if ($is_admin) {
return preg_replace("/\<([\/]?)(script)([^\>]*)\>?/i", "<$1$2$3>", $code);
} else {
return preg_replace("/\<([\/]?)(script|iframe)([^\>]*)\>?/i", "<$1$2$3>", $code);
}
이렇게 수정해도 안되네요
\ 요너미 자꾸 붙네요
그누보드 / lib / common.lib.php
return preg_replace("/\<([\/]?)(script|iframe)([^\>]*)\>?/i", "<$1$2$3>", $code);
를 아래와 같이 변경
if ($is_admin) {
return preg_replace("/\<([\/]?)(script)([^\>]*)\>?/i", "<$1$2$3>", $code);
} else {
return preg_replace("/\<([\/]?)(script|iframe)([^\>]*)\>?/i", "<$1$2$3>", $code);
}
이렇게 수정해도 안되네요
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 1개
그냥 여분필드에 배열값으로 넣으시고, 호출하실때 iframe 코드로 완성하시면 어떨까요
여분필드 입력창에 http://www.aaa.com|498|510
위와같이 값만 필드에 입력하시고 호출할때 explode 함수로 배열을 가져와서 만드는거요!