Skip to content

Commit

Permalink
#302 fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberroland committed Mar 1, 2024
1 parent af8c24b commit 09bc769
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lam/lib/account.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down
2 changes: 1 addition & 1 deletion lam/lib/modules.inc
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ function printHelpLink($entry, $number, $module = '', $scope = '', $classes = []
}
echo "<a class=\"margin2 " . implode(" ", $classes) . "\" href=\"" . $helpPath . "help.php?module=$module&amp;HelpNumber=". $number . "&amp;scope=" . $scope . $selfServiceOption . "\" ";
echo "target=\"help\" tabindex=\"-1\">";
echo "<img helptitle=\"" . $title . "\" helpdata=\"" . $message . "\" class=\"align-middle help-icon\" src=\"../${helpPath}graphics/help.svg\" alt=\"" . _('Help') . "\" width=\"16px\" height=\"16px\">";
echo "<img helptitle=\"" . $title . "\" helpdata=\"" . $message . "\" class=\"align-middle help-icon\" src=\"../{$helpPath}graphics/help.svg\" alt=\"" . _('Help') . "\" width=\"16px\" height=\"16px\">";
echo "</a>";
}

Expand Down

0 comments on commit 09bc769

Please sign in to comment.