[cgiapp] Re: [Announce] CGI::Application::Plugin::ValidateQuery
mark at summersault.com
Sat Jun 6 16:05:48 EDT 2009
On Fri, 5 Jun 2009 15:16:43 -0400
Nathaniel Smith <nate at summersault.com> wrote:
> I have uploaded a plugin that provides lightweight query validation using
> Params::Validate. The release on CPAN is stable and tested but has not seen
> production use. Any and all feedback or review would be greatly appreciated!
Thanks for working on this Nathaniel. Here's a couple of initial points of feedback:
- A small thing in the POD:
s/If <log_level>/If C<log_level>/
- A bug: The docs say: "If you set a default, the query will be modified with the new value."
This does not appear to be the case, for this to be true, the return value of "validate()"
would need to be captured, and for each value in the returned hash, a call to param()
could be used to set the new value back in the query.
More information about the cgiapp