mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +09:00
issue 2212 add 'use_html' option
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11100 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4f984d4f91
commit
a738206cdf
2 changed files with 8 additions and 0 deletions
|
|
@ -206,6 +206,10 @@
|
||||||
$obj->content = preg_replace('!<\!--(Before|After)(Document|Comment)\(([0-9]+),([0-9]+)\)-->!is', '', $obj->content);
|
$obj->content = preg_replace('!<\!--(Before|After)(Document|Comment)\(([0-9]+),([0-9]+)\)-->!is', '', $obj->content);
|
||||||
if(Mobile::isFromMobilePhone())
|
if(Mobile::isFromMobilePhone())
|
||||||
{
|
{
|
||||||
|
if($obj->use_html != 'Y')
|
||||||
|
{
|
||||||
|
$obj->content = htmlspecialchars($obj->content);
|
||||||
|
}
|
||||||
$obj->content = nl2br($obj->content);
|
$obj->content = nl2br($obj->content);
|
||||||
}
|
}
|
||||||
if(!$obj->regdate) $obj->regdate = date("YmdHis");
|
if(!$obj->regdate) $obj->regdate = date("YmdHis");
|
||||||
|
|
|
||||||
|
|
@ -235,6 +235,10 @@ class documentController extends document {
|
||||||
$obj->content = preg_replace('!<\!--(Before|After)(Document|Comment)\(([0-9]+),([0-9]+)\)-->!is', '', $obj->content);
|
$obj->content = preg_replace('!<\!--(Before|After)(Document|Comment)\(([0-9]+),([0-9]+)\)-->!is', '', $obj->content);
|
||||||
if(Mobile::isFromMobilePhone())
|
if(Mobile::isFromMobilePhone())
|
||||||
{
|
{
|
||||||
|
if($obj->use_html != 'Y')
|
||||||
|
{
|
||||||
|
$obj->content = htmlspecialchars($obj->content);
|
||||||
|
}
|
||||||
$obj->content = nl2br($obj->content);
|
$obj->content = nl2br($obj->content);
|
||||||
}
|
}
|
||||||
// Remove iframe and script if not a top adminisrator in the session.
|
// Remove iframe and script if not a top adminisrator in the session.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue