Skip to content

Commit

Permalink
Added utf8_decode when reading info from ldap.
Browse files Browse the repository at this point in the history
Thanks to stronk7 pointing this out.
  • Loading branch information
paca70 committed Sep 22, 2004
1 parent c4b8c0c commit 6b9d8ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth/ldap/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function auth_get_userinfo($username){
$user_entry = ldap_get_entries($ldap_connection, $user_info_result);
foreach ($attrmap as $key=>$value){
if(isset($user_entry[0][strtolower($value)][0])){
$result[$key]=$user_entry[0][strtolower($value)][0];
$result[$key]=utf8_decode($user_entry[0][strtolower($value)][0]);
}
}
$result['guid']='ldap';
Expand Down

0 comments on commit 6b9d8ab

Please sign in to comment.