skazat has asked for the wisdom of the Perl Monks concerning the following question:
Hello All,
I'm in the process of untainting a fairly large cgi program and have run into this problem when I try to load a Module I wrote just for the program. The module itself is located in its own library directory and is usually called by doing something like:
use lib './'; use LIB::MYMODULE;
but it seems when I turn tainting on, I get this wonderful little tidbit:
some things I've tried, adding the path to the $ENV{PATH}, doing something like this:Can't locate LIB/MYMODULE.pm in @INC (@INC contains: /usr/libdata/perl +/5.00503/mach.... yadda yadda) not listing my directory, of couse,
BEGIN{ $lib = '/usr/home/justin/www/LIB'; push(@INC, $lib); }
What am I missing?
also, any suggestions/insight on converting a large program to use taint checking is appreciated.
-justin simoni
!skazat!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Taint and Module q
by runrig (Abbot) on Jan 04, 2001 at 11:50 UTC | |
|
Re: Taint and Module q
by davorg (Chancellor) on Jan 04, 2001 at 13:46 UTC |