From 2545c0950c4f0fde8f78b265217fa9f523eff7bf Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 20 Jun 2006 03:15:17 +0000 Subject: Bug 304601: Bugzilla::Config's :locations exports need to be in their own module - Patch by Frédéric Buclin r=mkanat for the main patch, r=myk for the patch about CGI.pm a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug 328637: Remove all legal_* versioncache arrays - Patch by Frédéric Buclin r=mkanat a=justdave Bug 110503 - Eliminate versioncache --- post_bug.cgi | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'post_bug.cgi') diff --git a/post_bug.cgi b/post_bug.cgi index de7868555..4cc00ce6b 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -39,16 +39,6 @@ use Bugzilla::Product; use Bugzilla::Keyword; use Bugzilla::Token; -# Shut up misguided -w warnings about "used only once". For some reason, -# "use vars" chokes on me when I try it here. -sub sillyness { - my $zz; - $zz = @::legal_opsys; - $zz = @::legal_platform; - $zz = @::legal_priority; - $zz = @::legal_severity; -} - my $user = Bugzilla->login(LOGIN_REQUIRED); my $cgi = Bugzilla->cgi; @@ -248,14 +238,12 @@ if (!Param('letsubmitterchoosepriority')) { $cgi->param(-name => 'priority', -value => Param('defaultpriority')); } -GetVersionTable(); - # Some more sanity checking -check_field('rep_platform', scalar $cgi->param('rep_platform'), \@::legal_platform); -check_field('bug_severity', scalar $cgi->param('bug_severity'), \@::legal_severity); -check_field('priority', scalar $cgi->param('priority'), \@::legal_priority); -check_field('op_sys', scalar $cgi->param('op_sys'), \@::legal_opsys); -check_field('bug_status', scalar $cgi->param('bug_status'), ['UNCONFIRMED', 'NEW']); +check_field('rep_platform', scalar $cgi->param('rep_platform')); +check_field('bug_severity', scalar $cgi->param('bug_severity')); +check_field('priority', scalar $cgi->param('priority')); +check_field('op_sys', scalar $cgi->param('op_sys')); +check_field('bug_status', scalar $cgi->param('bug_status'), ['UNCONFIRMED', 'NEW']); check_field('version', scalar $cgi->param('version'), [map($_->name, @{$product->versions})]); check_field('target_milestone', scalar $cgi->param('target_milestone'), -- cgit v1.2.3-24-g4f1b