mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
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:
parent
6302511227
commit
cb1033c179
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user