aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-11-03 19:46:13 +0000
committerlpsolit%gmail.com <>2009-11-03 19:46:13 +0000
commited629ca0a2680ebeed503ca7d071fbf8ab8dfbec (patch)
tree700d0ae3029471f1f2f0a25bf51232055c5dd387 /buglist.cgi
parentBug 518404: Make email_in.pl run in taint mode (diff)
downloadbugzilla-ed629ca0a2680ebeed503ca7d071fbf8ab8dfbec.tar.gz
bugzilla-ed629ca0a2680ebeed503ca7d071fbf8ab8dfbec.tar.bz2
bugzilla-ed629ca0a2680ebeed503ca7d071fbf8ab8dfbec.zip
Bug 526271: Uninitialized value in can_enter_product() due to a missing argument - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 60713b035..a8103a1e0 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -1101,7 +1101,7 @@ elsif (my @product_input = $cgi->param('product')) {
}
# We only want the template to use it if the user can actually
# enter bugs against it.
-if (Bugzilla->user->can_enter_product($one_product)) {
+if ($one_product && Bugzilla->user->can_enter_product($one_product)) {
$vars->{'one_product'} = $one_product;
}