@@ 325-332 (lines=8) @@ | ||
322 | // remove XE's own tags from the contents |
|
323 | $obj->content = preg_replace('!<\!--(Before|After)(Document|Comment)\(([0-9]+),([0-9]+)\)-->!is', '', $obj->content); |
|
324 | ||
325 | if(Mobile::isFromMobilePhone() && $obj->use_editor != 'Y') |
|
326 | { |
|
327 | if($obj->use_html != 'Y') |
|
328 | { |
|
329 | $obj->content = htmlspecialchars($obj->content, ENT_COMPAT | ENT_HTML401, 'UTF-8', false); |
|
330 | } |
|
331 | $obj->content = nl2br($obj->content); |
|
332 | } |
|
333 | ||
334 | if(!$obj->regdate) |
|
335 | { |
|
@@ 734-741 (lines=8) @@ | ||
731 | // remove XE's wn tags from contents |
|
732 | $obj->content = preg_replace('!<\!--(Before|After)(Document|Comment)\(([0-9]+),([0-9]+)\)-->!is', '', $obj->content); |
|
733 | ||
734 | if(Mobile::isFromMobilePhone() && $obj->use_editor != 'Y') |
|
735 | { |
|
736 | if($obj->use_html != 'Y') |
|
737 | { |
|
738 | $obj->content = htmlspecialchars($obj->content, ENT_COMPAT | ENT_HTML401, 'UTF-8', false); |
|
739 | } |
|
740 | $obj->content = nl2br($obj->content); |
|
741 | } |
|
742 | ||
743 | // remove iframe and script if not a top administrator on the session |
|
744 | if($logged_info->is_admin != 'Y') |
@@ 284-291 (lines=8) @@ | ||
281 | if($obj->title == '') $obj->title = 'Untitled'; |
|
282 | // Remove XE's own tags from the contents. |
|
283 | $obj->content = preg_replace('!<\!--(Before|After)(Document|Comment)\(([0-9]+),([0-9]+)\)-->!is', '', $obj->content); |
|
284 | if(Mobile::isFromMobilePhone() && $obj->use_editor != 'Y') |
|
285 | { |
|
286 | if($obj->use_html != 'Y') |
|
287 | { |
|
288 | $obj->content = htmlspecialchars($obj->content, ENT_COMPAT | ENT_HTML401, 'UTF-8', false); |
|
289 | } |
|
290 | $obj->content = nl2br($obj->content); |
|
291 | } |
|
292 | // Remove iframe and script if not a top adminisrator in the session. |
|
293 | if($logged_info->is_admin != 'Y') $obj->content = removeHackTag($obj->content); |
|
294 | // An error appears if both log-in info and user name don't exist. |
|
@@ 486-493 (lines=8) @@ | ||
483 | if($obj->title == '') $obj->title = 'Untitled'; |
|
484 | // Remove XE's own tags from the contents. |
|
485 | $obj->content = preg_replace('!<\!--(Before|After)(Document|Comment)\(([0-9]+),([0-9]+)\)-->!is', '', $obj->content); |
|
486 | if(Mobile::isFromMobilePhone() && $obj->use_editor != 'Y') |
|
487 | { |
|
488 | if($obj->use_html != 'Y') |
|
489 | { |
|
490 | $obj->content = htmlspecialchars($obj->content, ENT_COMPAT | ENT_HTML401, 'UTF-8', false); |
|
491 | } |
|
492 | $obj->content = nl2br($obj->content); |
|
493 | } |
|
494 | // Change not extra vars but language code of the original document if document's lang_code is different from author's setting. |
|
495 | if($source_obj->get('lang_code') != Context::getLangType()) |
|
496 | { |