From 6b9d8ab22bd46a87bb1df62704029417beedfbbb Mon Sep 17 00:00:00 2001 From: paca70 Date: Wed, 22 Sep 2004 18:45:05 +0000 Subject: [PATCH] Added utf8_decode when reading info from ldap. Thanks to stronk7 pointing this out. --- auth/ldap/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/ldap/lib.php b/auth/ldap/lib.php index 4004013d8ae..212b977f6e1 100644 --- a/auth/ldap/lib.php +++ b/auth/ldap/lib.php @@ -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';