Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
1) If I have a.cgi which posts to b.cgi, what is the best way to untaint? I have been using this:
But I see that lastname could have been bogus, in which case I will have u_lastname be the same as u_firstname, when I'd prefer to let the user know what they entered was bogus.param('firstname') =~ /^([a-zA-Z]+)$/; my $u_firstname = $1; param('lastname') =~ /^([a-zA-Z]+)$/; my $u_lastname = $1;
2) If I have 3 cgi's. a posts to b and b posts to c, how can I make a's params available to c?
gratci, me
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Best way to untaint
by Abigail-II (Bishop) on Jun 24, 2004 at 13:43 UTC | |
|
Re: Best way to untaint
by Tomte (Priest) on Jun 24, 2004 at 13:35 UTC |