Fix RVE-2023-6 (getFileList)

This commit is contained in:
Kijin Sung 2023-11-01 22:36:05 +09:00
parent 4a9a89b299
commit 99de7db35a

View file

@ -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)