Added utf8_decode when reading info from ldap.

Thanks to stronk7 pointing this out.
This commit is contained in:
paca70
2004-09-22 18:45:05 +00:00
parent c4b8c0c709
commit 6b9d8ab22b
+1 -1
View File
@@ -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';