From 5fa2dec9db2d58e277aba2d8ef0fff4788bd5430 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sat, 10 Mar 2018 00:30:03 +0900 Subject: [PATCH] Also detect force_download=Y option in procFileDownload --- modules/file/file.controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/file/file.controller.php b/modules/file/file.controller.php index 7640f256b..227b18499 100644 --- a/modules/file/file.controller.php +++ b/modules/file/file.controller.php @@ -391,7 +391,7 @@ class fileController extends file } $file_key_data = $file_obj->file_srl . $file_obj->file_size . $file_obj->uploaded_filename . $_SERVER['REMOTE_ADDR']; $file_key = substr(hash_hmac('sha256', $file_key_data, $_SESSION['__XE_FILE_KEY__']), 0, 32); - header('Location: '.getNotEncodedUrl('', 'act', 'procFileOutput','file_srl',$file_srl,'file_key',$file_key)); + header('Location: '.getNotEncodedUrl('', 'act', 'procFileOutput', 'file_srl', $file_srl, 'file_key', $file_key, 'force_download', Context::get('force_download') === 'Y' ? 'Y' : null)); Context::close(); exit(); }