NAME
CGI::Untaint::boolean - untaint boolean values from CGI programs
SYNOPSIS
use CGI::Untaint;
my $handler = CGI::Untaint->new( $q->Vars() );
my $boolean = $handler->extract( -as_boolean => 'some_feature' );
DESCRIPTION
This input handler verifies that it is dealing with a reasonable boolean value, probably from a checkbox with no value specified. In this case, "reasonable" means that the value is on
, if the checkbox is checked, or empty, if the client did not send a value.
SEE ALSO
CGI::Untaint, CGI::Untaint::object
AUTHOR
chromatic, <chromatic@wgz.org>
Thanks to Tony Bowden for helpful suggestions.
BUGS
No known bugs. Please report any to http://rt.cpan.org/.
COPYRIGHT
Copyright (c) 2004, chromatic. All rights reserved. This module is distributed under the same terms as Perl itself, in the hope that it is useful but certainly under no guarantee.