aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-10-26 02:31:31 +0000
committerlpsolit%gmail.com <>2005-10-26 02:31:31 +0000
commitea8deb3e88876420c1a616586191aa3bcbb2609a (patch)
treeb348c7dad95d6b91569af9b1289194bbae1c667f /long_list.cgi
parentBug 313603: The keyword_already_exists error has an undefined variable - Patc... (diff)
downloadbugzilla-ea8deb3e88876420c1a616586191aa3bcbb2609a.tar.gz
bugzilla-ea8deb3e88876420c1a616586191aa3bcbb2609a.tar.bz2
bugzilla-ea8deb3e88876420c1a616586191aa3bcbb2609a.zip
Bug 313546: long_list.cgi URLs don't redirect to show_bug correctly - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=myk
Diffstat (limited to 'long_list.cgi')
-rwxr-xr-xlong_list.cgi7
1 files changed, 2 insertions, 5 deletions
diff --git a/long_list.cgi b/long_list.cgi
index a5d59909b..c02c8deda 100755
--- a/long_list.cgi
+++ b/long_list.cgi
@@ -28,11 +28,8 @@ use Bugzilla;
my $cgi = Bugzilla->cgi;
# Convert comma/space separated elements into separate params
-my @ids = ();
-
-if (defined $cgi->param('buglist')) {
- @ids = split (/[, ]+/, $cgi->param('buglist'));
-}
+my $buglist = $cgi->param('buglist') || $cgi->param('bug_id') || $cgi->param('id');
+my @ids = split (/[\s,]+/, $buglist);
my $ids = join('', map { $_ = "&id=" . $_ } @ids);