From 3f266793880cdecf1c3e3fd4750848757c42890d Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Wed, 31 Aug 2005 06:01:14 +0000 Subject: [PATCH] Merged from MOODLE_15_STABLE - auth/db: Better support for utf-8 user data. --- auth/db/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/db/lib.php b/auth/db/lib.php index 73afd050c42..96f8f281b4d 100644 --- a/auth/db/lib.php +++ b/auth/db/lib.php @@ -76,7 +76,7 @@ function auth_get_userinfo($username){ if ($rs = $authdb->Execute("SELECT ".$pcfg["field_map_$field"]." FROM $CFG->auth_dbtable WHERE $CFG->auth_dbfielduser = '$username'")) { if ( $rs->RecordCount() == 1 ) { - $result["$field"] = $rs->fields[0]; + $result["$field"] = addslashes(stripslashes(utf8_decode($rs->fields[0]))); } } }