RSS

(root)/bugzilla/3.6 : 6113 : show_activity.cgi

To get this branch, use:
bzr branch /bugzilla/3.6

« back to all changes in this revision

Viewing changes to show_activity.cgi

mkanat%bugzilla.org
2008-06-29 19:57:54
Revision ID: cvs-1:mkanatbugzilla.org-20080630025754-h0rylmikmb6z28g1
Bug 440612 â€“ Use Bugzilla::Bug->check everywhere instead of ValidateBugID
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit

Show diffs side-by-side

added added

removed removed

43
43
 
44
44
# Make sure the bug ID is a positive integer representing an existing
45
45
# bug that the user is authorized to access.
46
 
my $bug_id = $cgi->param('id');
47
 
ValidateBugID($bug_id);
 
46
my $id = $cgi->param('id');
 
47
my $bug = Bugzilla::Bug->check($id);
48
48
 
49
49
###############################################################################
50
50
# End Data/Security Validation
51
51
###############################################################################
52
52
 
53
53
($vars->{'operations'}, $vars->{'incomplete_data'}) = 
54
 
    Bugzilla::Bug::GetBugActivity($bug_id);
 
54
    Bugzilla::Bug::GetBugActivity($bug->id);
55
55
 
56
 
$vars->{'bug'} = new Bugzilla::Bug($bug_id);
 
56
$vars->{'bug'} = $bug;
57
57
 
58
58
print $cgi->header();
59
59
 

Loggerhead 1.18.1 is a web-based interface for Bazaar branches