aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-10-12 05:37:48 +0000
committerlpsolit%gmail.com <>2006-10-12 05:37:48 +0000
commiteba7c009f236ebeb01b9c0a8994233169c8bf9ae (patch)
treedf1b62ad8097927867e8824853aa4a9a7213a5c9 /showdependencytree.cgi
parentBug 356256: Missing word 'are' in email notification - Patch by victory(_RSZ_... (diff)
downloadbugzilla-eba7c009f236ebeb01b9c0a8994233169c8bf9ae.tar.gz
bugzilla-eba7c009f236ebeb01b9c0a8994233169c8bf9ae.tar.bz2
bugzilla-eba7c009f236ebeb01b9c0a8994233169c8bf9ae.zip
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);