From: terry%mozilla.org <> Date: Sun, 23 Jan 2000 06:19:05 +0000 (+0000) Subject: Honor the emailregexp param when checking email addresses. X-Git-Tag: bugzilla-2.12~433 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2491654291209345784c141700bad79603fe07b;p=thirdparty%2Fbugzilla.git Honor the emailregexp param when checking email addresses. --- diff --git a/sanitycheck.cgi b/sanitycheck.cgi index b67dad69e6..953a90a7d2 100755 --- a/sanitycheck.cgi +++ b/sanitycheck.cgi @@ -160,9 +160,11 @@ SendSQL("select userid,login_name from profiles"); my %profid; +my $emailregexp = Param("emailregexp"); + while (@row = FetchSQLData()) { my ($id, $email) = (@row); - if ($email =~ /^[^@, ]*@[^@, ]*\.[^@, ]*$/) { + if ($email =~ /$emailregexp/o) { $profid{$id} = 1; } else { Alert "Bad profile id $id <$email>."