Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Best way to untaint

by Abigail-II (Bishop)
on Jun 24, 2004 at 13:43 UTC ( #369356=note: print w/ replies, xml ) Need Help??

in reply to Best way to untaint

You should first check if the match succeeds, then do the assignment. Something like:

die "Horribly" unless param 'firstname' =~ /^([a-zA-Z])+$/; my $u_firstname = $1; die "Horribly" unless param 'lastname' =~ /^([a-zA-Z])+$/; my $u_lastname = $1;

As for answer 2, a needs to pass its information to b, and b needs to pass that information to c, in whatever form is most convenient to you. Either encoded in the URL (could be in the path, could be in the query (which is what happens if a browser does a GET form request)), or in the body of the request (which is what happens if a browser does a POST form request). Or you could use smoke signals if you have a fire and a smoke receiver.


Comment on Re: Best way to untaint
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://369356]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2015-12-01 06:21 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (795 votes), past polls