mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Move XSS filtering before multilang juggling
This commit is contained in:
parent
5a95f0c3f3
commit
df1438ea04
1 changed files with 6 additions and 6 deletions
|
|
@ -903,6 +903,12 @@ class documentController extends document
|
||||||
$obj->content = getModel('editor')->converter($obj, 'document');
|
$obj->content = getModel('editor')->converter($obj, 'document');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove iframe and script if not a top adminisrator in the session.
|
||||||
|
if($logged_info->is_admin != 'Y')
|
||||||
|
{
|
||||||
|
$obj->content = removeHackTag($obj->content);
|
||||||
|
}
|
||||||
|
|
||||||
// Change not extra vars but language code of the original document if document's lang_code is different from author's setting.
|
// Change not extra vars but language code of the original document if document's lang_code is different from author's setting.
|
||||||
if($source_obj->get('lang_code') != Context::getLangType())
|
if($source_obj->get('lang_code') != Context::getLangType())
|
||||||
{
|
{
|
||||||
|
|
@ -928,12 +934,6 @@ class documentController extends document
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove iframe and script if not a top adminisrator in the session.
|
|
||||||
if($logged_info->is_admin != 'Y')
|
|
||||||
{
|
|
||||||
$obj->content = removeHackTag($obj->content);
|
|
||||||
}
|
|
||||||
|
|
||||||
// if temporary document, regdate is now setting
|
// if temporary document, regdate is now setting
|
||||||
if($source_obj->get('status') == $this->getConfigStatus('temp')) $obj->regdate = date('YmdHis');
|
if($source_obj->get('status') == $this->getConfigStatus('temp')) $obj->regdate = date('YmdHis');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue