Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: inconsistency in untaint

by nerfherder (Monk)
on Feb 08, 2011 at 02:06 UTC ( #886866=note: print w/replies, xml ) Need Help??


in reply to inconsistency in untaint

I just had this same error message when calling mkdir() with a string containing a scalar which was passed to the function as an argument.

The solution was to do something similar to what File::Path does to untaint to the variable prior to the mkdir() call:

if ($tainted =~ /^([ &:#-\@\w.]+)$/) { $tainted = $1; #data is now untainted } else { # data is bad, log this: print STDERR "[TAINT] Bad Data received as \$tainted \n"; }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (1)
As of 2021-09-24 04:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?