From: paca70 Date: Wed, 22 Sep 2004 18:50:03 +0000 (+0000) Subject: Added utf8_decode when reading info from ldap. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8dad1541a23f49e23231b5a2d3873892d0dc464a;p=moodle.git Added utf8_decode when reading info from ldap. Thanks to stronk7 pointing this out. --- diff --git a/auth/ldap/lib.php b/auth/ldap/lib.php index 9c684a96a7..712c2f6e73 100644 --- a/auth/ldap/lib.php +++ b/auth/ldap/lib.php @@ -139,7 +139,7 @@ function auth_get_userinfo($username){ $user_entry = ldap_get_entries($ldapconnection, $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]); } } }