taint: why does my 'use lib' line cause problems
- The following code generates a run-time error about an 'insecure
If I use a constant path it doesn't generate an error.
I would like to have taint checking turned on in my CGI script, which
uses a private module in the script's parent directory.
Why is the error generated?
How can I have fix it? (apart from removing -T)
use lib "$FindBin::Bin/..";
use CGI; # Line 5.:w
Insecure dependency in require while running with -T switch at
./taint.pl line 5.
BEGIN failed--compilation aborted at ./taint.pl line 5.