]> 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:25:04 +0000 (21:25 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Fri, 30 Nov 2012 20:25:04 +0000 (21:25 +0100)
r/a=LpSolit

Bugzilla/User.pm

index 417072e95c3bcebc58d272a97070d3f7c72d451d..1486087224558edb1846bb4dff2783c48c52cfc7 100644 (file)
@@ -203,7 +203,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)