Re: [Maypole-dev] $r->{query} is now deprecated

From: Simon Flack (sf at flacks.net)
Date: Thu Sep 09 2004 - 23:45:16 BST


On Thu, 09 Sep 2004 19:08:13 +0200, Sebastian Riedel wrote
> Two changes for today...
>
> - $r->{query} is now deprecated, you can use $r->{params} for GET
> and POST. - Merged Apache2::MVC into Apache::MVC. (No idea if it
> works for mod_perl2, would be nice if someone could test it)

I just noticed that CGI::Maypole is populating $r->{params} and $r->{query}
with CGI->Vars.

The behaviour differs from Apache::MVC which is now storing multiple values.
CGI->Vars stores multi-values as a sting separated by a null byte.

Patch attached, Added parse_args(), fixed indenting.

Also, Maypole::CLI has $r->{query} but no $r->{params}.

--simonflk



_______________________________________________
maypole-dev mailing list
maypole-dev at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole-dev



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT