Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: What's your favourite method of untainting?

by japhy (Canon)
on Dec 16, 2005 at 16:26 UTC ( #517284=note: print w/replies, xml ) Need Help??


in reply to What's your favourite method of untainting?

WTF is up with the fourth option? It's got a syntax error, and I can't see how it could possibly work.

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart
  • Comment on Re: What's your favourite method of untainting?

Replies are listed 'Best First'.
Re^2: What's your favourite method of untainting?
by Corion (Pope) on Dec 16, 2005 at 16:29 UTC

    Whoops - that's a typo. It should be:

    ($foo) = ($val =~ /^(?!.).$/);

    and the essence of it is, that it never accepts any incoming data (albeit in a roundabout way).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2016-10-01 19:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (7 votes). Check out past polls.