Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
our $lastname = $INPUT->param('lastname'); if ($lastname =~ /^[\s\w.'-]+$/ && length($lastname) < 28) { $lastname = $1; # $data now untain +ted } else { our $error_msg_xxx = '<li>Please Check the Last Name f +ield'; push my @form_values, "lastname"; $error_yes++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: taint problem
by tlm (Prior) on May 31, 2005 at 05:38 UTC | |
|
Re: taint problem
by Zaxo (Archbishop) on May 31, 2005 at 05:37 UTC | |
|
Re: taint problem
by monarch (Priest) on May 31, 2005 at 05:38 UTC |