From eb64e22a9b389d2e5880f57d7861c178153540ed Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Wed, 11 Oct 2006 22:37:48 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20356336:=20Crash=20when=20calling=20showde?= =?UTF-8?q?pendencytree.cgi=20with=20no=20bug=20ID=20-=20Patch=20by=20Fr?= =?UTF-8?q?=EF=BF=BDd=EF=BF=BDric=20Buclin=20=20r=3Dmka?= =?UTF-8?q?nat=20a=3Dmyk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webtools/bugzilla/showdependencytree.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webtools/bugzilla/showdependencytree.cgi b/webtools/bugzilla/showdependencytree.cgi index 5efa0bc9cc07..dfc715cf8472 100755 --- a/webtools/bugzilla/showdependencytree.cgi +++ b/webtools/bugzilla/showdependencytree.cgi @@ -49,7 +49,7 @@ my $dbh = Bugzilla->switch_to_shadow_db(); # Make sure the bug ID is a positive integer representing an existing # bug that the user is authorized to access. -my $id = $cgi->param('id'); +my $id = $cgi->param('id') || ThrowUserError('invalid_bug_id_or_alias'); ValidateBugID($id); my $current_bug = new Bugzilla::Bug($id);