From eba7c009f236ebeb01b9c0a8994233169c8bf9ae Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 12 Oct 2006 05:37:48 +0000 Subject: [PATCH] =?utf8?q?Bug=20356336:=20Crash=20when=20calling=20showdep?= =?utf8?q?endencytree.cgi=20with=20no=20bug=20ID=20-=20Patch=20by=20Fr?= =?utf8?q?=C3=A9d=C3=A9ric=20Buclin=20=20r=3Dmkanat=20a?= =?utf8?q?=3Dmyk?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- showdependencytree.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/showdependencytree.cgi b/showdependencytree.cgi index 5efa0bc9cc..dfc715cf84 100755 --- a/showdependencytree.cgi +++ b/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); -- 2.47.2