ports/net/phpldapadmin/files/patch-lib__PageRender.php
Matthew Seaman f8906302f6 Modernization: switch to USES=php:web
Update files/patch-lib__functions.php to work around the lack of the
deprecated mcrypt functions in php >= 7.1.

Regenerate patches with 'make makesum'

PR:		227199
Submitted by:	ohartmann@walstatt.org
2018-04-02 20:11:58 +00:00

29 lines
975 B
PHP

--- lib/PageRender.php.orig 2012-10-01 06:54:14 UTC
+++ lib/PageRender.php
@@ -287,7 +287,7 @@ class PageRender extends Visitor {
break;
default:
- $vals[$i] = password_hash($passwordvalue,$enc);
+ $vals[$i] = password_hash_custom($passwordvalue,$enc);
}
$vals = array_unique($vals);
@@ -957,7 +957,7 @@ class PageRender extends Visitor {
if (trim($val))
$enc_type = get_enc_type($val);
else
- $enc_type = $server->getValue('appearance','password_hash');
+ $enc_type = $server->getValue('appearance','password_hash_custom');
$obfuscate_password = obfuscate_password_display($enc_type);
@@ -982,7 +982,7 @@ class PageRender extends Visitor {
if (trim($val))
$enc_type = get_enc_type($val);
else
- $enc_type = $server->getValue('appearance','password_hash');
+ $enc_type = $server->getValue('appearance','password_hash_custom');
echo '<table cellspacing="0" cellpadding="0"><tr><td valign="top">';