diff options
-rwxr-xr-x | long_list.cgi | 7 |
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); |