issue 2212 remove htmlspeicailchars in mobile mode.

because, hack tag check in next flow.


git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11077 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2012-08-24 08:52:48 +00:00
parent 81755cec4b
commit d48ad655b9
2 changed files with 2 additions and 2 deletions

View file

@ -235,7 +235,7 @@ class documentController extends document {
$obj->content = preg_replace('!<\!--(Before|After)(Document|Comment)\(([0-9]+),([0-9]+)\)-->!is', '', $obj->content);
if(Mobile::isFromMobilePhone())
{
$obj->content = nl2br(htmlspecialchars($obj->content));
$obj->content = nl2br($obj->content);
}
// Remove iframe and script if not a top adminisrator in the session.
if($logged_info->is_admin != 'Y') $obj->content = removeHackTag($obj->content);