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

People
Owner: LDS [...] cpan.org
Requestors: olav [...] bkor.dhs.org
Cc:
AdminCc:

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
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.
Subject: foo.pl
#!/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: [rt.cpan.org #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 <bug-CGI.pm [...] rt.cpan.org>
From: Olav Vitters <olav [...] bkor.dhs.org>
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 cpan.org. Also tried searching for the CVS (or SVN/...), but could not find it. -- Regards, Olav
It will be released soon.