Hi, Gurus,
not familiar with Taint. I have a shell command call like below:
my $exeCommand = "$parentPath/mybin/createPDF $sourceFile $workingDirectory/$targetFile";
my status = '$exeCommand';
The script runs on a Linux box.
$parentPath is an absolute path to the sub directory mybin/createPDF.
$sourceFile is the source file containing an absolute path.
$workingDirectory is the target directory the $targetFile will be created in.
$targetFile is the file to be created.
how should I untaint this command?
by the way, using a relative path is not an option in our environment. The path / file must use absolute for the command to find it properly.
Thanks a ton.
not familiar with Taint. I have a shell command call like below:
my $exeCommand = "$parentPath/mybin/createPDF $sourceFile $workingDirectory/$targetFile";
my status = '$exeCommand';
The script runs on a Linux box.
$parentPath is an absolute path to the sub directory mybin/createPDF.
$sourceFile is the source file containing an absolute path.
$workingDirectory is the target directory the $targetFile will be created in.
$targetFile is the file to be created.
how should I untaint this command?
by the way, using a relative path is not an option in our environment. The path / file must use absolute for the command to find it properly.
Thanks a ton.