NAME

CGI::Untaint::CSP - Validate a state, county or province

VERSION

Version 0.02

SYNOPSIS

CGI::Untaint::CSP is a subclass of CGI::Untaint used to validate if the given user data is a valid county/state/province.

This class is not to be instantiated, instead a subclass must be instantiated. For example CGI::Untaint::CSP::GB would validate against a British county, CGI::Untaint::US would validate against a US state.

use CGI::Info;
use CGI::Untaint;
use CGI::Untaint::CSP::GB;
my $info = CGI::Info->new();
my $u = CGI::Untaint->new($info->params());
$u->extract(-as_CSP => 'state');
# ...

SUBROUTINES/METHODS

is_valid

Validates the data

AUTHOR

Nigel Horne, <njh at bandsman.co.uk>

BUGS

Please report any bugs or feature requests to bug-cgi-untaint-csp at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Untaint-CSP. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SEE ALSO

CGI::Untaint

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc CGI::Untaint::CSP

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2012 Nigel Horne.

This program is released under the following licence: GPL