Closed Bug 98468 Opened 24 years ago Closed 24 years ago

Sample value for emailregexp allows empty user names

Categories

(Bugzilla :: Administration, task, P1)

2.15

Tracking

()

RESOLVED FIXED
Bugzilla 2.16

People

(Reporter: alex, Assigned: justdave)

Details

Attachments

(1 file)

In defparams.pl, the description of the emailregexp parameter is given as follows: 'This defines the regexp to use for legal email addresses. The default tries to match fully qualified email addresses. Another popular value to put here is <tt>^[^@]*$</tt>, which means "local usernames, no @ allowed.' If you use the given sample value for emailregexp, Bugzilla will accept an empty string as a valid user name. Also note the missing quote mark at the end of the string. I recommend changing the description to: 'This defines the regexp to use for legal email addresses. The default tries to match fully qualified email addresses. Another popular value to put here is <tt>^[^@]+$</tt>, which means "local usernames, no @ allowed."'
Attached patch Patch v1Splinter Review
I noticed the default emailregexp for a full email address had exactly the same problem. This patch fixes both.
Status: NEW → ASSIGNED
Keywords: patch, review
Priority: -- → P1
Target Milestone: --- → Bugzilla 2.16
Comment on attachment 48400 [details] [diff] [review] Patch v1 r=jake No second review required.
Attachment #48400 - Flags: review+
checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: