Fix double escape of filename in short download URL #2611

This commit is contained in:
Kijin Sung 2025-11-05 11:51:56 +09:00
parent d671f0468c
commit 47cb8ca4ff
2 changed files with 3 additions and 3 deletions

View file

@ -307,7 +307,7 @@ class FileController extends File
$file_srl = Context::get('file_srl');
$sid = Context::get('sid');
$filename_arg = Context::get('filename');
$filename_arg = htmlspecialchars_decode(Context::get('filename'));
// Get file information from the DB
$file_obj = FileModel::getFile($file_srl);
@ -434,7 +434,7 @@ class FileController extends File
// Get requsted file info
$file_srl = Context::get('file_srl');
$file_key = Context::get('file_key');
$filename_arg = Context::get('filename');
$filename_arg = htmlspecialchars_decode(Context::get('filename'));
$columnList = array('source_filename', 'uploaded_filename', 'file_size');
$file_obj = FileModel::getFile($file_srl, $columnList);