From 00984351106f67e6f6bf47e00224f6915949abf0 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 5 Jan 2006 22:54:52 +0000 Subject: [PATCH] =?utf8?q?Bug=20320506:=20enter=5Fbug.cgi=20crashes=20if?= =?utf8?q?=20the=20product=20name=20is=20written=20with=20the=20wrong=20ca?= =?utf8?q?se=20-=20Patch=20by=20Fr=C3=A9d=C3=A9ric=20Buclin=20=20r=3Dmyk=20r=3Dbkor=20a=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- enter_bug.cgi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/enter_bug.cgi b/enter_bug.cgi index 1692289ffc..89ebbcb851 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -41,6 +41,7 @@ use Bugzilla; use Bugzilla::Constants; use Bugzilla::Bug; use Bugzilla::User; +use Bugzilla::Product; require "globals.pl"; use vars qw( @@ -327,6 +328,9 @@ if ($cloned_bug_id) { # We need to check and make sure # that the user has permission to enter a bug against this product. +my $prod_obj = new Bugzilla::Product({name => $product}); +# Update the product name to get the correct case. +$product = $prod_obj->name if defined $prod_obj; Bugzilla->user->can_enter_product($product, 1); GetVersionTable(); -- 2.47.2