Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Confused about Taint

by infoninja (Friar)
on Jul 12, 2000 at 19:59 UTC ( #22211=note: print w/ replies, xml ) Need Help??

in reply to Confused about Taint

It sounds like you're running your script through perl (i.e., executing 'perl formtest.cgi'), rather than executing formtest.cgi directly. This can be reproduced with the following code:

#!/usr/bin/perl -T print "Test\n";
This script will give the same error you report if run as 'perl' (with the code saved as, but will run ok if the executable bit is set and the script is run as
If run as 'perl', perl doesn't start the taint checking until it reaches the -T in the shebang line, at which point perl cannot be certain that the previous part of the script isn't tainted.

Comment on Re: Confused about Taint
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2015-11-29 15:16 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (751 votes), past polls