From e9366bf849572760166e891fa59be7f7d264b0f5 Mon Sep 17 00:00:00 2001 From: jerome Date: Thu, 14 Aug 2008 09:55:56 +0000 Subject: [PATCH] MDL-15175: ensures cross-db: add a lowercase conversion for the username, merged from 19 --- auth/db/auth.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auth/db/auth.php b/auth/db/auth.php index bf13ac32188..c0f57aff6fa 100644 --- a/auth/db/auth.php +++ b/auth/db/auth.php @@ -420,7 +420,8 @@ class auth_plugin_db extends auth_plugin_base { print_error('auth_dbcantconnect','auth'); } else if ( !$rs->EOF ) { while ($rec = $rs->FetchRow()) { - array_push($result, $rec->USERNAME); + $rec = (object)array_change_key_case((array)$rec , CASE_LOWER); + array_push($result, $rec->username); } }