]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 313546: long_list.cgi URLs don't redirect to show_bug correctly - Patch by Frédér...
authorlpsolit%gmail.com <>
Wed, 26 Oct 2005 02:31:31 +0000 (02:31 +0000)
committerlpsolit%gmail.com <>
Wed, 26 Oct 2005 02:31:31 +0000 (02:31 +0000)
long_list.cgi

index a5d59909bc87b01a3675e008e17a8fefd4e50ceb..c02c8deda5d9952598934185165f870d6c88b2df 100755 (executable)
@@ -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);