From 35b1450b75b61e0c19cc7b6ea98c7ec103475042 Mon Sep 17 00:00:00 2001 From: Patrick Canterino Date: Sun, 31 May 2026 15:07:50 +0200 Subject: [PATCH] Small refactoring --- lib/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. */ -- 2.43.0