[Catalyst] New plugin - request for comments

Christopher H. Laco claco at chrislaco.com
Fri Apr 28 19:19:23 CEST 2006


Toby Corkindale wrote:
> Hi,
> I've written a plugin that wraps CGI::Untaint.
> Before I upload to CPAN, I wondered if anyone would like to give me some
> feedback?
> It's available at:
> http://www.dryft.net/tmp/Catalyst-Plugin-CGI-Untaint.tar.gz
> 
> SYNOPSIS
>  # In your MainApp.pm:
>  use Catalyst qw/CGI::Untaint/;
> 
>  # Put into your form handler:
>  my $email = $c->untaint(-as_email => ’email’);
>  # Will extract only a valid email address from $c->req->params->{email}
>  # Use -error to get the rejection reason:
>  if (not $email) {
>      $error = $c->untaint(-last_error => ’email’);
>  }
> 
> (note - the email extraction also requires CGI::Untaint::email to be installed)
> 
> Toby
> 

Nice. My only thought: just make it Catalyst::Plugin::Untaint


-=Chris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060428/5f5da7a4/attachment-0001.pgp 


More information about the Catalyst mailing list