summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-20 21:05:21 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-20 21:05:21 +0100
commitdd9c365233b1418e44b2add9df0c521577a0c181 (patch)
treea3fdca3d86462f8d601a401a17a13801a8540d54
parent1237c19f93f456dbf75613538d5ac368b99d2af2 (diff)
downloadbugzilla-dd9c365233b1418e44b2add9df0c521577a0c181.tar.gz
bugzilla-dd9c365233b1418e44b2add9df0c521577a0c181.tar.xz
Bug 546867: Prevent email_in.pl from throwing a cryptic error on receiving
an invalid email r=LpSolit, a=LpSolit
-rwxr-xr-xemail_in.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/email_in.pl b/email_in.pl
index 7f2b2f6e4..1f610f138 100755
--- a/email_in.pl
+++ b/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;