summaryrefslogtreecommitdiffstats
path: root/describecomponents.cgi
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-03-27 06:00:11 +0100
committerjocuri%softhome.net <>2004-03-27 06:00:11 +0100
commitc0fc50d35b1e3320b28b281c16489f78babc5abb (patch)
tree588957a4a2130089f67533b55ab3a7b7c6c53106 /describecomponents.cgi
parentcecc6432218b8a3ca3dd07e6792de99e88be4683 (diff)
downloadbugzilla-c0fc50d35b1e3320b28b281c16489f78babc5abb.tar.gz
bugzilla-c0fc50d35b1e3320b28b281c16489f78babc5abb.tar.xz
Patch for bug 237369: implement relatively simple changes from %FORM to $cgi->param variable; patch by Teemu Mannermaa <wicked@etlicon.fi>; r=kiko, justdave; a=justdave.
Diffstat (limited to 'describecomponents.cgi')
-rwxr-xr-xdescribecomponents.cgi8
1 files changed, 3 insertions, 5 deletions
diff --git a/describecomponents.cgi b/describecomponents.cgi
index 05af91949..922a4912e 100755
--- a/describecomponents.cgi
+++ b/describecomponents.cgi
@@ -22,7 +22,6 @@
# Bradley Baetz <bbaetz@student.usyd.edu.au>
use vars qw(
- %FORM
%legal_product
$userid
);
@@ -41,8 +40,9 @@ quietly_check_login();
GetVersionTable();
my $cgi = Bugzilla->cgi;
+my $product = $cgi->param('product');
-if (!defined $::FORM{'product'}) {
+if (!$product) {
# Reference to a subset of %::proddesc, which the user is allowed to see
my %products;
@@ -73,11 +73,9 @@ if (!defined $::FORM{'product'}) {
exit;
}
- $::FORM{'product'} = (keys %products)[0];
+ $product = (keys %products)[0];
}
-my $product = $::FORM{'product'};
-
# Make sure the user specified a valid product name. Note that
# if the user specifies a valid product name but is not authorized
# to access that product, they will receive a different error message