Commit b8c9e238 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 300403: New Charts errors out, creates new 'add' user, when Env auth method…

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
parent b9f1149d
......@@ -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);
......
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