From 9c07104eb254cacb414146dd94c3052d1d18d7f7 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Fri, 11 Mar 2022 01:45:09 +0900 Subject: [PATCH] Reduce file download key expiration to 5 minutes #1890 --- 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 ada9c087c..916b7d79a 100644 --- a/modules/file/file.controller.php +++ b/modules/file/file.controller.php @@ -418,7 +418,7 @@ class fileController extends file throw new Rhymix\Framework\Exceptions\InvalidRequest; } $file_key_timestamp = hexdec(substr($file_key, 0, 8)); - if ($file_key_timestamp < \RX_TIME - 3600) + if ($file_key_timestamp < \RX_TIME - 300) { throw new Rhymix\Framework\Exceptions\InvalidRequest('msg_file_key_expired'); }