handle content for mobile

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7557 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2010-06-28 08:38:13 +00:00
parent cc21e013ab
commit 0693d8fd10
2 changed files with 8 additions and 0 deletions

View file

@ -129,6 +129,10 @@
// 내용에서 XE만의 태그를 삭제
$obj->content = preg_replace('!<\!--(Before|After)(Document|Comment)\(([0-9]+),([0-9]+)\)-->!is', '', $obj->content);
if(Mobile::isFromMobilePhone())
{
$obj->content = nl2br(htmlspecialchars($obj->content));
}
if(!$obj->regdate) $obj->regdate = date("YmdHis");
// 세션에서 최고 관리자가 아니면 iframe, script 제거