summaryrefslogtreecommitdiffstats
path: root/editusers.cgi
diff options
context:
space:
mode:
authordave%intrec.com <>2000-07-18 11:15:24 +0200
committerdave%intrec.com <>2000-07-18 11:15:24 +0200
commit45951692d647926e6fb467523c96572e716988b4 (patch)
treea6b8ef70456a25939ca5cae79d5998a39ac5f79e /editusers.cgi
parent4fa6f35665bf68fc9dc0599471b1932bb254f5ab (diff)
downloadbugzilla-45951692d647926e6fb467523c96572e716988b4.tar.gz
bugzilla-45951692d647926e6fb467523c96572e716988b4.tar.xz
Fix for bug 32971, patch submitted by mtakacs@pacbell.net
Diffstat (limited to 'editusers.cgi')
-rwxr-xr-xeditusers.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/editusers.cgi b/editusers.cgi
index 92ba42fa6..243e7ee04 100755
--- a/editusers.cgi
+++ b/editusers.cgi
@@ -376,6 +376,7 @@ if ($action eq 'new') {
my $realname = trim($::FORM{realname} || '');
my $password = trim($::FORM{password} || '');
my $disabledtext = trim($::FORM{disabledtext} || '');
+ my $emailregexp = Param("emailregexp");
unless ($user) {
print "You must enter a name for the new user. Please press\n";
@@ -383,7 +384,7 @@ if ($action eq 'new') {
PutTrailer($localtrailer);
exit;
}
- unless ($user =~ /^[^\@]+\@[^\@]+$/) {
+ unless ($user =~ m/$emailregexp/) {
print "The user name entered must be a valid e-mail address. Please press\n";
print "<b>Back</b> and try again.\n";
PutTrailer($localtrailer);