Query: cgi::untaint::object
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CGI::Untaint::object(3pm) User Contributed Perl Documentation CGI::Untaint::object(3pm)NAMECGI::Untaint::object - base class for Input HandlersSYNOPSISpackage MyUntaint::foo; use base 'CGI::Untaint::object'; sub _untaint_re { return qr/$your_regex/; } sub is_valid { my $self = shift; return is_ok($self->value); } 1;DESCRIPTIONThis is the base class that all Untaint objects should inherit from.METHODS TO SUBCLASSis_valid / _untaint_re Your subclass should either provide a regular expression in _untaint_re (and yes, I should really make this public), or an entire is_valid method.METHODS TO CALLvalue This should really have been two methods, but too many other modules now rely on the fact that this does double duty. As an accessor, this is the 'raw' value. As a mutator it's the extracted one. re_all / re_none Regular expressions to match anything, or nothing, untained. These should only be used if you have already validated your entry in some way that means you completely trust the data. untainted Are we clean yet? perl v5.10.0 2005-09-20 CGI::Untaint::object(3pm)
Related Man Pages |
---|
appconfig::cgi(3) - suse |
appconfig::cgi(3) - centos |
template::plugin::cgi(3) - suse |
appconfig::cgi(3pm) - debian |
http::server::simple::cgi(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Installing Dash Shell on OS X Lion |
Detecting unused variables... |
Weird 'find' results |
My first PERL incarnation... Audio Oscillograph |