Bug 300403: New Charts errors out, creates new 'add' user, when Env auth method is used - Patch by A. Karl Kornel <karl@kornel.name> r=wurblzap a=justdave

This commit is contained in:
lpsolit%gmail.com 2005-07-26 14:53:27 +00:00
parent 6302511227
commit cb1033c179

View File

@ -51,8 +51,12 @@ sub login {
for ($env_id, $env_email, $env_realname) { $_ ||= '' };
# make sure the email field contains only a valid email address
my $emailregexp = Param("emailregexp");
$env_email =~ /($emailregexp)/;
$env_email = $1;
if ($env_email =~ /($emailregexp)/) {
$env_email = $1;
}
else {
return undef;
}
# untaint the remaining values
trick_taint($env_id);
trick_taint($env_realname);