From c1ca86053ed276aa05eac8468cea61785629ac5e Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Mon, 30 Jun 2008 02:57:54 +0000 Subject: Bug 440612 – Use Bugzilla::Bug->check everywhere instead of ValidateBugID Patch By Max Kanat-Alexander r=LpSolit, a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- show_bug.cgi | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'show_bug.cgi') diff --git a/show_bug.cgi b/show_bug.cgi index 782293af5..b3251b9d1 100755 --- a/show_bug.cgi +++ b/show_bug.cgi @@ -57,10 +57,7 @@ my %marks; if ($single) { my $id = $cgi->param('id'); - # Its a bit silly to do the validation twice - that functionality should - # probably move into Bug.pm at some point - ValidateBugID($id); - push @bugs, new Bugzilla::Bug($id); + push @bugs, Bugzilla::Bug->check($id); if (defined $cgi->param('mark')) { foreach my $range (split ',', $cgi->param('mark')) { if ($range =~ /^(\d+)-(\d+)$/) { -- cgit v1.2.3-24-g4f1b