summaryrefslogtreecommitdiffstats
path: root/showdependencytree.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 /showdependencytree.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 'showdependencytree.cgi')
-rwxr-xr-xshowdependencytree.cgi10
1 files changed, 4 insertions, 6 deletions
diff --git a/showdependencytree.cgi b/showdependencytree.cgi
index d9f642a3e..b82443226 100755
--- a/showdependencytree.cgi
+++ b/showdependencytree.cgi
@@ -31,8 +31,6 @@ require "CGI.pl";
# Use global template variables.
use vars qw($template $vars);
-use vars %::FORM;
-
ConnectToDatabase();
quietly_check_login();
@@ -52,12 +50,12 @@ $::userid = $::userid;
# Make sure the bug ID is a positive integer representing an existing
# bug that the user is authorized to access.
-ValidateBugID($::FORM{'id'});
-my $id = $::FORM{'id'};
+my $id = $cgi->param('id');
+ValidateBugID($id);
-my $hide_resolved = $::FORM{'hide_resolved'} ? 1 : 0;
+my $hide_resolved = $cgi->param('hide_resolved') ? 1 : 0;
-my $maxdepth = $::FORM{'maxdepth'} || 0;
+my $maxdepth = $cgi->param('maxdepth') || 0;
if ($maxdepth !~ /^\d+$/) { $maxdepth = 0 };
################################################################################