Bug 546867: Prevent email_in.pl from throwing a cryptic error on receiving

an invalid email
r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/branches/BUGZILLA-3_6-BRANCH@259772 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org 2010-02-20 20:19:50 +00:00
parent 5594e3936a
commit 8aedcfc0cc
2 changed files with 2 additions and 1 deletions

View File

@ -1 +1 @@
6989
6990

View File

@ -157,6 +157,7 @@ sub post_bug {
# Restrict the bug to groups marked as Default.
# We let Bug->create throw an error if the product is
# not accessible, to throw the correct message.
$fields->{product} = '' if !defined $fields->{product};
my $product = new Bugzilla::Product({ name => $fields->{product} });
if ($product) {
my @gids;