Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Safely capturing the output of an external program

by LanX (Sage)
on Mar 09, 2020 at 10:51 UTC ( #11114005=note: print w/replies, xml ) Need Help??


in reply to Re^2: Safely capturing the output of an external program
in thread Safely capturing the output of an external program

> Untainting might work though;

In this case I'd additionally surround arguments with 'singlequotes' .

Your untainting demo is explicitly forbidding quotes, in other cases escape them.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2023-06-08 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (33 votes). Check out past polls.

    Notices?