]> 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:37:48 +0000 (05:37 +0000)
committerlpsolit%gmail.com <>
Thu, 12 Oct 2006 05:37:48 +0000 (05:37 +0000)
showdependencytree.cgi

index 5efa0bc9cc07a36fe1f4d1758415a4c2c6ed94fc..dfc715cf84724e0a63a5c52a49a6fc4d053efcf9 100755 (executable)
@@ -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);