summaryrefslogtreecommitdiffstats
path: root/showdependencytree.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-10-12 07:37:48 +0200
committerlpsolit%gmail.com <>2006-10-12 07:37:48 +0200
commiteba7c009f236ebeb01b9c0a8994233169c8bf9ae (patch)
treedf1b62ad8097927867e8824853aa4a9a7213a5c9 /showdependencytree.cgi
parent7ff0923ec2e5a111693f5f5d65c7cda9905c5321 (diff)
downloadbugzilla-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
Diffstat (limited to 'showdependencytree.cgi')
-rwxr-xr-xshowdependencytree.cgi2
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);