]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 356336: Crash when calling showdependencytree.cgi with no bug ID - Patch by Frédé...
authorlpsolit%gmail.com <>
Thu, 12 Oct 2006 05:40:31 +0000 (05:40 +0000)
committerlpsolit%gmail.com <>
Thu, 12 Oct 2006 05:40:31 +0000 (05:40 +0000)
showdependencytree.cgi

index d9d71b0abc43ebeb1faf5a808c097aa096bd6efc..e435f1f4cf2dd931308eb0eea0f61d10c3a96cea 100755 (executable)
@@ -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;