aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Schumann <wurblzap@gmail.com>2010-10-13 18:37:16 +0200
committerMarc Schumann <wurblzap@gmail.com>2010-10-13 18:37:16 +0200
commitc4f408c9b70d1fbf169f60857a736d83bad66536 (patch)
treeb51bd1c17fbaed54b49924b58844f6b958b8afd5
parent5b77afdafdc3d0f7fc6b1d5945c39b6730ecfc75 (diff)
downloadbugs-c4f408c9b70d1fbf169f60857a736d83bad66536.tar
bugs-c4f408c9b70d1fbf169f60857a736d83bad66536.tar.gz
bugs-c4f408c9b70d1fbf169f60857a736d83bad66536.tar.bz2
bugs-c4f408c9b70d1fbf169f60857a736d83bad66536.tar.xz
bugs-c4f408c9b70d1fbf169f60857a736d83bad66536.zip
Bug 603314 - Unprivileged users cannot create bugs any more.
Adding a code comment post-checkin; see bug for details.
-rwxr-xr-xenter_bug.cgi3
1 files changed, 3 insertions, 0 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index 3a2b87fad..af37caf89 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -545,6 +545,9 @@ scalar(@statuses) || ThrowUserError('no_initial_bug_status');
unless ($has_editbugs || $has_canconfirm) {
# ... use UNCONFIRMED if available, else use the first status of the list.
my ($unconfirmed) = grep { $_->name eq 'UNCONFIRMED' } @statuses;
+
+ # Because of an apparent Perl bug, "$unconfirmed || $statuses[0]" doesn't
+ # work, so we're using an "?:" operator. See bug 603314 for details.
@statuses = ($unconfirmed ? $unconfirmed : $statuses[0]);
}