From ea8deb3e88876420c1a616586191aa3bcbb2609a Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 26 Oct 2005 02:31:31 +0000 Subject: Bug 313546: long_list.cgi URLs don't redirect to show_bug correctly - Patch by Frédéric Buclin r=wurblzap a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- long_list.cgi | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'long_list.cgi') 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); -- cgit v1.2.3-24-g4f1b