Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
729e221d
Commit
729e221d
authored
Mar 08, 2011
by
Gervase Markham
Committed by
Gervase Markham
Mar 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 622513 - Email-related regexp checking should be case-insensitive. a=mkanat.
parent
42087849
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
User.pm
Bugzilla/WebService/User.pm
+1
-1
createaccount.cgi
createaccount.cgi
+1
-1
auth.html.tmpl
template/en/default/admin/params/auth.html.tmpl
+1
-1
No files found.
Bugzilla/WebService/User.pm
View file @
729e221d
...
@@ -95,7 +95,7 @@ sub offer_account_by_email {
...
@@ -95,7 +95,7 @@ sub offer_account_by_email {
if
(
!
$createexp
)
{
if
(
!
$createexp
)
{
ThrowUserError
(
"account_creation_disabled"
);
ThrowUserError
(
"account_creation_disabled"
);
}
}
elsif
(
$email
!~
/$createexp/
)
{
elsif
(
$email
!~
/$createexp/
i
)
{
ThrowUserError
(
"account_creation_restricted"
);
ThrowUserError
(
"account_creation_restricted"
);
}
}
...
...
createaccount.cgi
View file @
729e221d
...
@@ -65,7 +65,7 @@ if (defined($login)) {
...
@@ -65,7 +65,7 @@ if (defined($login)) {
$login
=
Bugzilla::
User
->
check_login_name_for_creation
(
$login
);
$login
=
Bugzilla::
User
->
check_login_name_for_creation
(
$login
);
$vars
->
{
'login'
}
=
$login
;
$vars
->
{
'login'
}
=
$login
;
if
(
$login
!~
/$createexp/
)
{
if
(
$login
!~
/$createexp/
i
)
{
ThrowUserError
(
"account_creation_restricted"
);
ThrowUserError
(
"account_creation_restricted"
);
}
}
...
...
template/en/default/admin/params/auth.html.tmpl
View file @
729e221d
...
@@ -120,7 +120,7 @@
...
@@ -120,7 +120,7 @@
"the <tt>emailregexp</tt> param to only allow local usernames, " _
"the <tt>emailregexp</tt> param to only allow local usernames, " _
"but you want the mail to be delivered to username@my.local.hostname.",
"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 " _
"permitted to self-register using a 'New Account' feature. The " _
"default (.*) permits any account matching the emailregexp " _
"default (.*) permits any account matching the emailregexp " _
"to be created. If this parameter is left blank, no users " _
"to be created. If this parameter is left blank, no users " _
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment