Merge pull request #3477 from asmundstavdahl/authad-php8-compat

index array with braces rather than unsupported curly braces
This commit is contained in:
Andreas Gohr 2021-04-16 09:24:34 +02:00 committed by GitHub
commit ecfa490333
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -519,7 +519,7 @@ class adLDAPUsers {
{
$password="\"".$password."\"";
$encoded="";
for ($i=0; $i <strlen($password); $i++){ $encoded.="{$password{$i}}\000"; }
for ($i=0; $i <strlen($password); $i++){ $encoded.="{$password[$i]}\000"; }
return $encoded;
}