]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 300403: New Charts errors out, creates new 'add' user, when Env auth method is...
authorlpsolit%gmail.com <>
Tue, 26 Jul 2005 21:57:04 +0000 (21:57 +0000)
committerlpsolit%gmail.com <>
Tue, 26 Jul 2005 21:57:04 +0000 (21:57 +0000)
Bugzilla/Auth/Login/WWW/Env.pm

index 9853932065f21e60432d467f29e9d3e5ecacb3cc..39bea28dfd7b0976d1133b5e444523b4c057e80e 100644 (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);