Permalink
Browse files

Added utf8_decode when reading info from ldap.

Thanks to stronk7 pointing this out.
  • Loading branch information...
1 parent 78ae2f1 commit 8dad1541a23f49e23231b5a2d3873892d0dc464a paca70 committed Sep 22, 2004
Showing with 1 addition and 1 deletion.
  1. +1 −1 auth/ldap/lib.php
View
@@ -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]);
}
}
}

0 comments on commit 8dad154

Please sign in to comment.