mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 08:49:56 +09:00
글 내용에 iframe태그가 있을 경우 제거
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1963 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
db7dc5571c
commit
86bbeec870
1 changed files with 9 additions and 2 deletions
|
|
@ -124,14 +124,21 @@
|
|||
if($this->isSecret() && !$this->isGranted()) return Context::getLang('msg_is_secret');
|
||||
|
||||
$_SESSION['accessible'][$this->document_srl] = true;
|
||||
return htmlspecialchars($this->get('content'));
|
||||
|
||||
|
||||
$content = $this->get('content');
|
||||
$content = preg_replace("!<iframe(.*?)<\/iframe>!is","",$content);
|
||||
return htmlspecialchars($content);
|
||||
}
|
||||
|
||||
function getContent() {
|
||||
if($this->isSecret() && !$this->isGranted()) return Context::getLang('msg_is_secret');
|
||||
|
||||
$_SESSION['accessible'][$this->document_srl] = true;
|
||||
return sprintf('<!--BeforeDocument(%d,%d)-->%s<!--AfterDocument(%d,%d)-->', $this->document_srl, $this->get('member_srl'), $this->get('content'), $this->document_srl, $this->get('member_srl'));
|
||||
|
||||
$content = $this->get('content');
|
||||
$content = preg_replace("!<iframe(.*?)<\/iframe>!is","",$content);
|
||||
return sprintf('<!--BeforeDocument(%d,%d)-->%s<!--AfterDocument(%d,%d)-->', $this->document_srl, $this->get('member_srl'), $content, $this->document_srl, $this->get('member_srl'));
|
||||
}
|
||||
|
||||
function getSummary($str_size = 50) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue