-
-
18 Apr 2008 10:27:38 UTC
- Distribution: Maypole
- Module version: 0.01
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (13)
- Testers (225 / 231 / 1)
- Kwalitee
Bus factor: 0- 65.31% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (149.99KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- CGI::Simple
- CGI::Untaint
- CGI::Untaint::date
- CGI::Untaint::email
- Class::DBI
- Class::DBI::AbstractSearch
- Class::DBI::Loader
- Class::DBI::Loader::Relationship
- Class::DBI::Pager
- Class::DBI::Plugin::RetrieveAll
- Class::DBI::Plugin::Type
- Digest::MD5
- File::MMagic::XS
- HTML::Tree
- HTTP::Body
- Template
- Template::Plugin::Class
- Test::MockModule
- UNIVERSAL::moniker
- UNIVERSAL::require
- URI
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
CGI::Untaint::Maypole - Use instead of CGI::Untaint. Based on CGI::Untaint
SYNOPSIS
use CGI::Untaint::Maypole; my $h = CGI::Untaint::Maypole->new($params); $value = $h->extract(-as_printable => 'name); if ($h->error =~ /No input for/) { # caught empty input now handle it .... } if ($h->raw_data->{$field} eq $object->$field) { # Raw data same as database data. Perhaps we should not update field ... }
DESCRIPTION
This patches some issues I have with CGI::Untaint. You still need it installed and you install handlers the same.
1) Instead of passing the empty string to the untaint handlers and relying on them to handle it to everyone's liking, it seems better to have CGI::Untaint just say "No input for field" if the field is blank.
2) It adds the method
raw_data
to the get back the parameters the handler was created with.raw_data
Returns the parameters the handler was created with as a hashref
BUGS
None known yet.
SEE ALSO
AUTHOR
Peter Speltz.
BUGS and QUERIES
Please direct all correspondence regarding this module to: bug-Maypole@rt.cpan.org
COPYRIGHT and LICENSE
Copyright (C) 2006 Peter Speltz. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Maypole, copy and paste the appropriate command in to your terminal.
cpanm Maypole
perl -MCPAN -e shell install Maypole
For more information on module installation, please visit the detailed CPAN module installation guide.