mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-12 06:52:12 +09:00
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:
parent
cc21e013ab
commit
0693d8fd10
2 changed files with 8 additions and 0 deletions
|
|
@ -185,6 +185,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));
|
||||
}
|
||||
|
||||
// 세션에서 최고 관리자가 아니면 iframe, script 제거
|
||||
if($logged_info->is_admin != 'Y') $obj->content = removeHackTag($obj->content);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue