mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix RVE-2023-1 editor module XSS
This commit is contained in:
parent
103f5ce884
commit
ed7a0bd4e2
2 changed files with 7 additions and 9 deletions
|
|
@ -208,11 +208,11 @@ class editorModel extends editor
|
|||
// Load editor components.
|
||||
if($option->enable_component)
|
||||
{
|
||||
if(!Context::get('component_list'))
|
||||
{
|
||||
$component_list = self::getComponentList(true);
|
||||
Context::set('component_list', $component_list);
|
||||
}
|
||||
Context::set('component_list', self::getComponentList(true));
|
||||
}
|
||||
else
|
||||
{
|
||||
Context::set('component_list', []);
|
||||
}
|
||||
Context::set('enable_component', $option->enable_component ? true : false);
|
||||
Context::set('enable_default_component', $option->enable_default_component ? true : false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue