Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI CPAN distribution.

Report information
The Basics
Id: 21092
Status: resolved
Priority: 0/
Queue: CGI

Owner: LDS [...]
Requestors: olav [...]

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)

Subject: $cgi->param('buglist', undef, 'C', 'D', undef) does not set param anymore
Download (untitled) / with headers
text/plain 470b
The following used to set a param in 3.17 however it fails in 3.19+: $cgi->param('buglist', undef, 'C', 'D', undef); print join(', ', $cgi->param('buglist') ) . "\n"; This is due to the following change in the unreleased 3.18: 3. Fixed param() so that param(-name=>'foo',-values=>[]) sets the parameter to empty list. I've attached a small testscript to demonstrate the problem. This is breaking bug searching in Bugzilla 2.22+ and possible other version as well.
text/x-perl 381b
#!/usr/bin/perl use CGI; my $cgi = new CGI; $cgi->param('buglist', '__closed__'); print join(', ', $cgi->param('buglist')) . "\n"; $cgi->param('buglist', 'A', 'B', undef); print join(', ', $cgi->param('buglist') ) . "\n"; # Should print , C, D # does in 3.17, fails in 3.19+ $cgi->param('buglist', undef, 'C', 'D', undef); print join(', ', $cgi->param('buglist') ) . "\n";
This was already fixed in version 3.21.
Subject: Re: [ #21092] $cgi->param('buglist', undef, 'C', 'D', undef) does not set param anymore
Date: Mon, 21 Aug 2006 20:59:14 +0200
To: Lincoln_D_Stein via RT < [...]>
From: Olav Vitters <olav [...]>
Download (untitled) / with headers
text/plain 264b
On Mon, Aug 21, 2006 at 02:40:45PM -0400, Lincoln_D_Stein via RT wrote: Show quoted text
> This was already fixed in version 3.21.
Where I can download 3.21? I could not find it on Also tried searching for the CVS (or SVN/...), but could not find it. -- Regards, Olav
It will be released soon.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to