]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 298461: editusers.cgi does not allow you to change only the letter-case of an...
authorHugo <hugo.seabrook@gmail.com>
Fri, 30 Nov 2012 20:27:16 +0000 (21:27 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Fri, 30 Nov 2012 20:27:16 +0000 (21:27 +0100)
r/a=LpSolit

Bugzilla/User.pm

index 605eb3cd062f7084ad46d8efdc523d60ef3187e3..d2cf55dd963038a754634e26240c30e7ebcc0082 100644 (file)
@@ -208,7 +208,7 @@ sub check_login_name {
     check_email_syntax($name);
 
     # Check the name if it's a new user, or if we're changing the name.
-    if (!ref($invocant) || $invocant->login ne $name) {
+    if (!ref($invocant) || lc($invocant->login) ne lc($name)) {
         my @params = ($name);
         push(@params, $invocant->login) if ref($invocant);
         is_available_username(@params)