From: Patrick Canterino Date: Sun, 31 May 2026 13:29:37 +0000 (+0200) Subject: Fixed file encryption in classic uploads X-Git-Tag: 4.7.2~9^2~3 X-Git-Url: https://git.p6c8.net/jirafeau/pcanterino.git/commitdiff_plain/2a1d4d84d7ad3dd1ae11629ca0411fdd20cb6cb4 Fixed file encryption in classic uploads Encrypted files uploaded using classic (synchronous) uploads were marked using "C" identifying legacy mcrypt encryption => changed to "C2" identifying Sodium encryption --- diff --git a/lib/functions.php b/lib/functions.php index 84bcea8..0d66066 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -554,7 +554,7 @@ function jirafeau_add_file($file, $one_time_download, $key, $time, $ip, $crypt, $handle, $name . NL. $mime_type . NL. $size . NL. $password . NL. $time . NL . $hash. NL . ($one_time_download ? 'O' : 'R') . NL . time() . - NL . $ip . NL. $delete_link_code . NL . ($crypted ? 'C' : 'O') + NL . $ip . NL. $delete_link_code . NL . ($crypted ? 'C2' : 'O') ); fclose($handle); $hash_link = substr(base_16_to_64(md5_file($link_tmp_name)), 0, $link_name_length);