CGI::Untaint::set - untaint sets of values
use CGI::Untaint; my $handler = CGI::Untaint->new($q->Vars); $value = $handler->extract(-as_set => 'films' );
Untaints an arrayref (as might be submitted by an HTML multiple select form field, or multiple selections from a checkbox group) as a comma separated string suitable for use as a value for a MySQL (maybe others?) SET column.
Values are validated against the CGI::Untaint::printable regex. To validate against a specific set of allowed values, subclass this package and provide a custom _untaint_re method.
_untaint_re
David Baird, <cpan@riverside-cms.co.uk>
<cpan@riverside-cms.co.uk>
Please report any bugs or feature requests to bug-cgi-untaint-set@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Untaint-set. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-cgi-untaint-set@rt.cpan.org
Copyright 2005 David Baird, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install CGI::Untaint::set, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Untaint::set
CPAN shell
perl -MCPAN -e shell install CGI::Untaint::set
For more information on module installation, please visit the detailed CPAN module installation guide.