summaryrefslogtreecommitdiffstats
path: root/long_list.cgi
diff options
context:
space:
mode:
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);