mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
RVE-2022-3 filter skin parameter and others in dispLayoutPreviewWithModule()
This commit is contained in:
parent
3dfd78b729
commit
97586855d7
1 changed files with 5 additions and 6 deletions
|
|
@ -41,12 +41,11 @@ class layoutView extends layout
|
|||
public function dispLayoutPreviewWithModule()
|
||||
{
|
||||
$content = '';
|
||||
$layoutSrl = Context::get('layout_srl');
|
||||
|
||||
$module = Context::get('module_name');
|
||||
$mid = Context::get('target_mid');
|
||||
$skin = Context::get('skin');
|
||||
$skinType = Context::get('skin_type');
|
||||
$layoutSrl = intval(Context::get('layout_srl'));
|
||||
$module = preg_replace('/[^a-zA-Z0-9_]/', '', Context::get('module_name'));
|
||||
$mid = preg_replace('/[^a-zA-Z0-9\/_-]/', '', Context::get('target_mid'));
|
||||
$skin = preg_replace('/[^a-zA-Z0-9_-]/', '', Context::get('skin'));
|
||||
$skinType = Context::get('skin_type') === 'M' ? 'M' : 'P';
|
||||
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue