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

Those options all scare me...

by jonadab (Parson)
on Dec 16, 2005 at 14:36 UTC ( #517250=note: print w/replies, xml ) Need Help??


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

I thought the whole point of running in taint mode in the first place was to remind yourself to sanity-check all the user input and ensure it doesn't have any bizarroid stuff in it that you didn't expect, and that the recommended best practice was to combine untainting with validating, as in
($num) = $num =~ /(\d+)/; ($str) = $str =~ /([A-Za-z0-9_-]+)/;
i.e., everything not specifically allowed is verboten.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://517250]
help
Chatterbox?
[Discipulus]: even with odd number of \
[Eily]: well, it allows you to concatenate strings to make a path without knowing if the final \ is already there or not
[Discipulus]: also cd c:/ulisse\\\\\ strawberry \\..\\\\\\ strawberry & pwd runs fine

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2017-05-24 08:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?