mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +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 = [];
|
||||
$attached_size = 0;
|
||||
$editor_sequence = Context::get('editor_sequence');
|
||||
$upload_target_srl = Context::get('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;
|
||||
}
|
||||
$editor_sequence = intval(Context::get('editor_sequence'));
|
||||
$upload_target_srl = $_SESSION['upload_info'][$editor_sequence]->upload_target_srl ?? 0;
|
||||
|
||||
// Get uploaded files
|
||||
if($upload_target_srl)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue