Bojan Smojver wrote: > On Fri, 2008-11-14 at 09:10 -0500, Adam Prime wrote: > >> I was reminded of a documentation omission by an email on the mod_perl >> list this morning. Can something be added into the porting warnings here: >> >> http://httpd.apache.org/apreq/docs/libapreq2/group__apreq__xs__request.html >> >> mentioning that my @params = $r->param() no long returns a unique list >> of the params. IE that ?a=b&a=c will return (a, a), not (a), which is >> how it worked in libapreq1. >> > > Sure. Do you have a patch? > >
Does the attached patch work? Adam
Index: glue/perl/lib/Apache2/Request.pm =================================================================== --- glue/perl/lib/Apache2/Request.pm (revision 721076) +++ glue/perl/lib/Apache2/Request.pm (working copy) @@ -417,6 +417,10 @@ =item * C<param> includes the functionality of C<parms()> and C<params()>, so they are now deprecated and may be removed from a future 2.X release. +=item * C<param> called in a list context no longer returns a unique list of + paramaters. The returned list contains multiple instances of the + parameter name for multivalued fields. + =back