diff options
author | jocuri%softhome.net <> | 2004-03-27 05:00:11 +0000 |
---|---|---|
committer | jocuri%softhome.net <> | 2004-03-27 05:00:11 +0000 |
commit | c0fc50d35b1e3320b28b281c16489f78babc5abb (patch) | |
tree | 588957a4a2130089f67533b55ab3a7b7c6c53106 /describecomponents.cgi | |
parent | Bug 232097: Use an entity reference for the landfill base URL in the demos, t... (diff) | |
download | bugzilla-c0fc50d35b1e3320b28b281c16489f78babc5abb.tar.gz bugzilla-c0fc50d35b1e3320b28b281c16489f78babc5abb.tar.bz2 bugzilla-c0fc50d35b1e3320b28b281c16489f78babc5abb.zip |
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-x | describecomponents.cgi | 8 |
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 |