From e6829515b0b5737e3a0cc44a2682fc25e5fbbb33 Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 15 Mar 2003 08:26:00 +0000 Subject: [PATCH] Bug fix from Ray Le Couteur ... alphanumeric check was checking old username but not the new username --- user/edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/edit.php b/user/edit.php index eaa0e06301..e2065ed5f2 100644 --- a/user/edit.php +++ b/user/edit.php @@ -163,7 +163,7 @@ function find_form_errors(&$user, &$usernew, &$err) { $err["username"] = get_string("usernameexists"); } else { - $string = eregi_replace("[^(-\.[:alnum:])]", "", $user->username); + $string = eregi_replace("[^(-\.[:alnum:])]", "", $usernew->username); if (strcmp($user->username, $string)) $err["username"] = get_string("alphanumerical"); } -- 2.39.5