From 8dad1541a23f49e23231b5a2d3873892d0dc464a Mon Sep 17 00:00:00 2001
From: paca70 <paca70>
Date: Wed, 22 Sep 2004 18:50:03 +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 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]);
             }
         }
     }
-- 
2.39.5