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

ItemTemplate edit

Summary Foswiki::Request::param fails if parameter name is 0 or ''
ReportedBy GilmarSantosJr
Codebase 1.0.2, 1.0.1, 1.0.0, 1.0.0 beta3, 1.0.0 beta2, 1.0.0 beta1, trunk
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component Foswiki::Request
Priority Low
CurrentState Closed
WaitingFor
Checkins Foswikirev:2799 Foswikirev:2800 Foswikirev:2801
TargetRelease patch
ReleasedIn 1.0.4
Topic revision: r10 - 19 Mar 2009, KennethLavrsen
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads