diff options
author | lpsolit%gmail.com <> | 2006-10-12 07:37:48 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-10-12 07:37:48 +0200 |
commit | eba7c009f236ebeb01b9c0a8994233169c8bf9ae (patch) | |
tree | df1b62ad8097927867e8824853aa4a9a7213a5c9 | |
parent | 7ff0923ec2e5a111693f5f5d65c7cda9905c5321 (diff) | |
download | bugzilla-eba7c009f236ebeb01b9c0a8994233169c8bf9ae.tar.gz bugzilla-eba7c009f236ebeb01b9c0a8994233169c8bf9ae.tar.xz |
Bug 356336: Crash when calling showdependencytree.cgi with no bug ID - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
-rwxr-xr-x | showdependencytree.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/showdependencytree.cgi b/showdependencytree.cgi index 5efa0bc9c..dfc715cf8 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); |