Commit 18f242c4 authored by bugreport%peshkin.net's avatar bugreport%peshkin.net

Bug 127862:Have sanitycheck.cgi use perl to evaluate email regexp

r=vlad,a=justdave
parent 151bd229
......@@ -418,13 +418,12 @@ DoubleCrossCheck("milestones", "product_id", "value",
Status("Checking profile logins");
my $emailregexp = Param("emailregexp");
$emailregexp =~ s/'/\\'/g;
SendSQL("SELECT userid, login_name FROM profiles " .
"WHERE login_name NOT REGEXP '" . $emailregexp . "'");
SendSQL("SELECT userid, login_name FROM profiles");
while (my ($id,$email) = (FetchSQLData())) {
Alert "Bad profile email address, id=$id, <$email>."
unless ($email =~ m/$emailregexp/) {
Alert "Bad profile email address, id=$id, <$email>."
}
}
###########################################################################
......
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