]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch for bug 235268: Convert show_activity.cgi to get rid of %FORM; r=jouni; a=justdave.
authorjocuri%softhome.net <>
Fri, 27 Feb 2004 19:13:55 +0000 (19:13 +0000)
committerjocuri%softhome.net <>
Fri, 27 Feb 2004 19:13:55 +0000 (19:13 +0000)
show_activity.cgi

index 8c636ea0b9330ba6e2168f15e08c3936c72f4f98..e1697255b7091ef112e3b2f0e4474368a25a8bed 100755 (executable)
@@ -28,6 +28,7 @@ use lib qw(.);
 use vars qw ($template $vars);
 
 require "CGI.pl";
+my $cgi = Bugzilla->cgi;
 
 ConnectToDatabase();
 
@@ -40,16 +41,17 @@ quietly_check_login();
 
 # Make sure the bug ID is a positive integer representing an existing
 # bug that the user is authorized to access.
-ValidateBugID($::FORM{'id'});
+my $bug_id = $cgi->param('id');
+ValidateBugID($bug_id);
 
 ###############################################################################
 # End Data/Security Validation
 ###############################################################################
 
 ($vars->{'operations'}, $vars->{'incomplete_data'}) = 
-                                                 GetBugActivity($::FORM{'id'});
+                                                 GetBugActivity($bug_id);
 
-$vars->{'bug_id'} = $::FORM{'id'};
+$vars->{'bug_id'} = $bug_id;
 
 print Bugzilla->cgi->header();