Commit 729e221d authored by Gervase Markham's avatar Gervase Markham Committed by Gervase Markham

Bug 622513 - Email-related regexp checking should be case-insensitive. a=mkanat.

parent 42087849
......@@ -95,7 +95,7 @@ sub offer_account_by_email {
if (!$createexp) {
ThrowUserError("account_creation_disabled");
}
elsif ($email !~ /$createexp/) {
elsif ($email !~ /$createexp/i) {
ThrowUserError("account_creation_restricted");
}
......
......@@ -65,7 +65,7 @@ if (defined($login)) {
$login = Bugzilla::User->check_login_name_for_creation($login);
$vars->{'login'} = $login;
if ($login !~ /$createexp/) {
if ($login !~ /$createexp/i) {
ThrowUserError("account_creation_restricted");
}
......
......@@ -120,7 +120,7 @@
"the <tt>emailregexp</tt> param to only allow local usernames, " _
"but you want the mail to be delivered to username@my.local.hostname.",
createemailregexp => "This defines the regexp to use for email addresses that are " _
createemailregexp => "This defines the (case-insensitive) regexp to use for email addresses that are " _
"permitted to self-register using a 'New Account' feature. The " _
"default (.*) permits any account matching the emailregexp " _
"to be created. If this parameter is left blank, no users " _
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment