From: lpsolit%gmail.com <> Date: Thu, 12 Oct 2006 05:40:31 +0000 (+0000) Subject: Bug 356336: Crash when calling showdependencytree.cgi with no bug ID - Patch by Frédé... X-Git-Tag: bugzilla-2.22.1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6aa851eef806dcce62965ad36fbeb6c98664ae32;p=thirdparty%2Fbugzilla.git Bug 356336: Crash when calling showdependencytree.cgi with no bug ID - Patch by Frédéric Buclin r=mkanat a=myk --- diff --git a/showdependencytree.cgi b/showdependencytree.cgi index d9d71b0abc..e435f1f4cf 100755 --- a/showdependencytree.cgi +++ b/showdependencytree.cgi @@ -45,7 +45,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 $hide_resolved = $cgi->param('hide_resolved') ? 1 : 0;