Taint checking and die

Ted <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
Hi,

With taint checking on (-T), doing the following causes my test server
to terminate with the message "Insecure dependency in open while
running with -t switch":

die "path = $ENV{PATH}\n";

Doing the same via a simple perl script does not result in failure.

Apparently the die in the mod_perl environment is behaving differently.
Is this normal?  If so, shouldn't it say "Insecure dependency in die
..."?

I've switched to -t instead, but like the idea of server termination
when the taint check finds something.

mod_perl 2.0.4
perl 5.12.1

Thank you,
Ted
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.