summaryrefslogtreecommitdiffstats
path: root/long_list.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-10-26 04:31:31 +0200
committerlpsolit%gmail.com <>2005-10-26 04:31:31 +0200
commitea8deb3e88876420c1a616586191aa3bcbb2609a (patch)
treeb348c7dad95d6b91569af9b1289194bbae1c667f /long_list.cgi
parent76bc56893dc4b44df72cbae3dd835729abc5e991 (diff)
downloadbugzilla-ea8deb3e88876420c1a616586191aa3bcbb2609a.tar.gz
bugzilla-ea8deb3e88876420c1a616586191aa3bcbb2609a.tar.xz
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);