Bug 298461: editusers.cgi does not allow you to change only the letter-case of an email address

r/a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@264506 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org 2012-11-30 20:30:44 +00:00
parent 316e795b2f
commit e545ca577a
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
8497
8498

View 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)