From 8aedcfc0cca60bcd620f9ef10c3f41ffb1ccf734 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" Date: Sat, 20 Feb 2010 20:19:50 +0000 Subject: [PATCH] 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 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- mozilla/webtools/bugzilla/email_in.pl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index 5c577927bac..2cc430b9be2 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -6989 \ No newline at end of file +6990 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/email_in.pl b/mozilla/webtools/bugzilla/email_in.pl index 7f2b2f6e4d8..1f610f1383f 100755 --- a/mozilla/webtools/bugzilla/email_in.pl +++ b/mozilla/webtools/bugzilla/email_in.pl @@ -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;