cross
Foswiki General Assembly will be held on 28th November 2019, 1200 UTC on Freenode IRC channel #foswiki-association. See AgendaTenthGeneralAssembly

Item1172: Foswiki::Request::param fails if parameter name is 0 or ''

pencil
Priority: Low
Current State: Closed
Released In: 1.0.4
Target Release: patch
Applies To: Engine
Component: Foswiki::Request
Branches:
Reported By: GilmarSantosJr
Waiting For:
Last Change By: KennethLavrsen
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 distro:326c02896c7e distro:762e5d2f105c distro:a9e26e28c212
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 Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy