summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2005-10-19 06:12:45 +0200
committerbugreport%peshkin.net <>2005-10-19 06:12:45 +0200
commit89222752d44a4c99e6b901e95adf9e613d705815 (patch)
treee7432b5b71d968e55f20fb04c412b524395ba85b /post_bug.cgi
parent6372dbd5d9f79a86989897a14647ef5a4b0363eb (diff)
downloadbugzilla-89222752d44a4c99e6b901e95adf9e613d705815.tar.gz
bugzilla-89222752d44a4c99e6b901e95adf9e613d705815.tar.xz
Bug 141593 You can add/remove dependencies on bugs you can't see
Patch by Joel Peshkin <bugreport@peshkin.net> r=lpsolit, a=justdave
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index 176b42d71..18faa5090 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -261,7 +261,9 @@ foreach my $field ("dependson", "blocked") {
my @validvalues;
foreach my $id (split(/[\s,]+/, $cgi->param($field))) {
next unless $id;
- ValidateBugID($id, $field);
+ # $field is not passed to ValidateBugID to prevent adding new
+ # dependencies on inacessible bugs.
+ ValidateBugID($id);
push(@validvalues, $id);
}
$cgi->param(-name => $field, -value => join(",", @validvalues));