professa has asked for the wisdom of the Perl Monks concerning the following question:
Hi dear fellow monks,
I know this may be a trivial question, but I'm having some problems of understanding the tainted mode of Perl and how to call external programs/scripts when using it. I'm having a CGI-script collecting the data from the browser and passing it via files/commandline to an external Perl-script, which does some calculations on that stuff.script.pl -v -in <file> -opt1 -opt2 -opt3 <num> -optx
my $log = `script.pl $shellstring`;
This does not work in tainted mode. I tried several variations of calling the script (using system() etc.) but I'm not able to get this working. The CGI-script tests all data for being valid and not containing illegal characters.
Thanx in advance, Michael
|
|---|