From: Patrick Canterino Date: Sun, 31 May 2026 13:07:50 +0000 (+0200) Subject: Small refactoring X-Git-Tag: 4.7.2~10^2 X-Git-Url: https://git.p6c8.net/jirafeau/jirafeau.git/commitdiff_plain/35b1450b75b61e0c19cc7b6ea98c7ec103475042?hp=09a404c9de4c90d1ab6e659d887b6e7dbb2e22c4 Small refactoring --- diff --git a/lib/functions.php b/lib/functions.php index 9ea7351..833e21b 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -544,7 +544,7 @@ function jirafeau_add_file($file, $one_time_download, $key, $time, $ip, $crypt, /* hash password or empty. */ $password = ''; if (!empty($key)) { - $password = '[SHA256]'.hash('sha256', $key); + $password = '[SHA256]' . hash('sha256', $key); } /* create link file */ @@ -1091,7 +1091,7 @@ function jirafeau_async_init($filename, $type, $one_time, $key, $time, $ip) /* sha256 password or empty */ $password = ''; if (!empty($key)) { - $password = '[SHA256]'.hash('sha256', $key); + $password = '[SHA256]' . hash('sha256', $key); } /* Store information. */