Item1172: Foswiki::Request::param fails if parameter name is 0 or ''
Priority: Low
Current State: Closed
Released In: 1.0.4
Target Release: patch
Applies To: Engine
Component: Foswiki::Request
Branches:
The following code:
my $req = new Foswiki::Request("");
$req->param(-name => 0, -value => 'abc123');
$req->param(-name => '', -value => '');
print scalar $req->param,"\n";
should print
2
, but currently prints
0
. It's unlikely to happen in practice a parameter named as
0
or as
''
, but
Foswiki::Request::param
must behave well in both situations.
--
GilmarSantosJr - 01 Mar 2009