Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Homegrown Pseudo-Tainting

by ChOas (Curate)
on Mar 15, 2002 at 09:36 UTC ( #151945=note: print w/ replies, xml ) Need Help??

in reply to Homegrown Pseudo-Tainting

Just to add to all the posters above, who focus more on
untainting the data, perldoc perlsec gives this example
to beforehand check if the data is actually tainted:

sub is_tainted { return ! eval { join('',@_), kill 0; 1; }; }


print "profeth still\n" if /bird|devil/;

Comment on Re: Homegrown Pseudo-Tainting
Download Code
Re: Re: Homegrown Pseudo-Tainting
by gellyfish (Monsignor) on Mar 15, 2002 at 11:49 UTC

    Except that will only do what you want when you have used the '-T' switch. And as the person who asked the question said they can't use '-T' ..


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2015-07-06 07:57 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (70 votes), past polls