Reduce file download key expiration to 5 minutes #1890

This commit is contained in:
Kijin Sung 2022-03-11 01:45:09 +09:00
parent 237134f64d
commit 9c07104eb2

View file

@ -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');
}