Kurt Edmiston wrote:
> 
> Hi, I'm trying to use taint mode on one of my cgi programs using the -T flag.
> 
> #!/usr/local/bin/perl -wT
> 
> When I check the syntax with  "perl -c file.cgi" I get the following message:
> 
> Too late for "-T" option at manager.cgi line 1.

Try

    perl -cT manager.cgi

when running from command line.  I'm not 100% sure on this but here's
how I think it's working.  The perl on the command line starts and then
reads/parses the file.  In order for taint checking to be effective, it
has to be turned on prior to this step.

Dan

Reply via email to