1Catalyst::Plugin::CGI::UUsnetraiCnotn(t3r)ibuted Perl DoCcautmaelnytsatt:i:oPnlugin::CGI::Untaint(3)
2
3
4

NAME

6       Catalyst::Plugin::CGI::Untaint - Plugin for Catalyst
7

SYNOPSIS

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

DESCRIPTION

25       This module wraps CGI::Untaint up into a Catalyst plugin.
26
27       For info on using CGI::Untaint, see its own documentation.
28

SEE ALSO

30       Catalyst
31
32       CGI::Untaint
33

AUTHOR

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.34.0                      2022-01-21 Catalyst::Plugin::CGI::Untaint(3)
Impressum