diff options
author | bugreport%peshkin.net <> | 2005-10-19 04:12:45 +0000 |
---|---|---|
committer | bugreport%peshkin.net <> | 2005-10-19 04:12:45 +0000 |
commit | 89222752d44a4c99e6b901e95adf9e613d705815 (patch) | |
tree | e7432b5b71d968e55f20fb04c412b524395ba85b /post_bug.cgi | |
parent | 6372dbd5d9f79a86989897a14647ef5a4b0363eb (diff) | |
download | bugs-89222752d44a4c99e6b901e95adf9e613d705815.tar bugs-89222752d44a4c99e6b901e95adf9e613d705815.tar.gz bugs-89222752d44a4c99e6b901e95adf9e613d705815.tar.bz2 bugs-89222752d44a4c99e6b901e95adf9e613d705815.tar.xz bugs-89222752d44a4c99e6b901e95adf9e613d705815.zip |
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-x | post_bug.cgi | 4 |
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)); |