From: moodler Date: Tue, 1 Apr 2003 02:14:16 +0000 (+0000) Subject: Sorry, Petri, but we need to undo these changes, because: X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ffb410df030eb67706796b70a3dbe4c8e146b037;p=moodle.git Sorry, Petri, but we need to undo these changes, because: - they could break accounts in existing installations - strtolower can corrupt strings in multibyte languages Is it really a problem that usernames are case sensitive on PostgreSQL? --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 5856d4bac4..9c73e183fa 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -484,8 +484,6 @@ function create_user_record($username, $password) { /// Creates a bare-bones user record global $REMOTE_ADDR, $CFG; - $username = strtolower($username); - if (function_exists(auth_get_userinfo)) { if ($newinfo = auth_get_userinfo($username)) { foreach ($newinfo as $key => $value){ diff --git a/user/edit.php b/user/edit.php index 4f42084c2b..4eb3c328a6 100644 --- a/user/edit.php +++ b/user/edit.php @@ -43,7 +43,6 @@ /// If data submitted, then process and store. if ($usernew = data_submitted()) { - $usernew->username = strtolower($usernew->username); $usernew->firstname = strip_tags($usernew->firstname); $usernew->lastname = strip_tags($usernew->lastname);