- or download this
use CGI::Safe qw/ taint /;
my $q = CGI::Safe->new;
- or download this
use CGI::Safe qw/ :standard taint /;
my $var = param( 'var' ) || '';
( $var ) = ( $var =~ /^([\s\w\d]+)$/ );
- or download this
use CGI::Safe;
my $q = CGI::Safe->new;
...
{
error_routine( $q->tainted_param( 'foo' ) );
}
- or download this
my $foo = param( { foo => qr/^([\w\s\d]+)$/ } );