NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item9693 for docu changes for 1.2 and 2.0.
Item1172: Foswiki::Request::param fails if parameter name is 0 or ''
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Low |
Closed |
Engine |
Foswiki::Request |
|
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