mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
Fix RVE-2023-6 (getFileList)
This commit is contained in:
parent
4a9a89b299
commit
99de7db35a
1 changed files with 2 additions and 6 deletions
|
|
@ -26,12 +26,8 @@ class FileModel extends File
|
||||||
{
|
{
|
||||||
$file_list = [];
|
$file_list = [];
|
||||||
$attached_size = 0;
|
$attached_size = 0;
|
||||||
$editor_sequence = Context::get('editor_sequence');
|
$editor_sequence = intval(Context::get('editor_sequence'));
|
||||||
$upload_target_srl = Context::get('upload_target_srl') ?: 0;
|
$upload_target_srl = $_SESSION['upload_info'][$editor_sequence]->upload_target_srl ?? 0;
|
||||||
if(!$upload_target_srl && isset($_SESSION['upload_info'][$editor_sequence]))
|
|
||||||
{
|
|
||||||
$upload_target_srl = $_SESSION['upload_info'][$editor_sequence]->upload_target_srl;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get uploaded files
|
// Get uploaded files
|
||||||
if($upload_target_srl)
|
if($upload_target_srl)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue