From 09bc7692c40cd5da30c1e773b98d5eab85a1e921 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 1 Mar 2024 07:55:29 +0100 Subject: [PATCH] #302 fix deprecation warnings --- lam/lib/account.inc | 2 +- lam/lib/modules.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lam/lib/account.inc b/lam/lib/account.inc index f110a1e0d..929aece5f 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -178,7 +178,7 @@ function pwd_hash($password, $enabled = true, $hashType = 'SSHA') { $iterations = 200000; $salt = openssl_random_pseudo_bytes(16); $hashBinary = openssl_pbkdf2($password, $salt, 64, $iterations, 'sha512'); - $hash = "{PBKDF2-SHA512}${iterations}" . '$' . base64_encode($salt) . '$' . base64_encode($hashBinary); + $hash = "{PBKDF2-SHA512}{$iterations}" . '$' . base64_encode($salt) . '$' . base64_encode($hashBinary); break; case 'MD5': $hash = "{MD5}" . base64_encode(hex2bin(md5($password))); diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index 4c8c8849d..ce51244da 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -738,7 +738,7 @@ function printHelpLink($entry, $number, $module = '', $scope = '', $classes = [] } echo ""; - echo "\"""; + echo "\"""; echo ""; }