1Catalyst::Plugin::CGI::UUsnetraiCnotn(t3r)ibuted Perl DoCcautmaelnytsatt:i:oPnlugin::CGI::Untaint(3)
2
3
4
6 Catalyst::Plugin::CGI::Untaint - Plugin for Catalyst
7
9 # In your MainApp.pm:
10 use Catalyst qw/CGI::Untaint/;
11
12 # Put into your form handler:
13 my $email = $c->untaint(-as_email => 'email');
14 # Will extract only a valid email address from $c->req->params->{email}
15
16 # Use -last_error to get the rejection reason:
17 if (not $email) {
18 $error = $c->untaint(-last_error => 'email');
19 }
20
21 # (note, you will need to have CGI::Untaint and CGI::Untaint::email installed
22 # in order for the above example to work)
23
25 This module wraps CGI::Untaint up into a Catalyst plugin.
26
27 For info on using CGI::Untaint, see its own documentation.
28
30 Catalyst
31
32 CGI::Untaint
33
35 Toby Corkindale, <cpan@corkindale.net>
36
38 Copyright (C) 2006 by Toby Corkindale
39
40 This library is free software; you can redistribute it and/or modify it
41 under the same terms as Perl itself, either Perl version 5.8.7 or, at
42 your option, any later version of Perl 5 you may have available.
43
44
45
46perl v5.28.0 2006-12-04 Catalyst::Plugin::CGI::Untaint(3)