yep this works for me
Thanks.
Based on the above I now have this:
This gives the same error Insecure dependency in require while running with -T switch at index.pl line 18. so I think I can safely assume that the problem is with the Site::HTML module.#!/usr/bin/perl -T use CGI::Carp qw(fatalsToBrowser); use FindBin qw($RealBin); my $safepath; BEGIN { if ($RealBin =~ m!^(/home/username/website/uk/www)!) { $safepath = "$1/../lib"; } else { die "Illegal use of software - visit www.website.uk to use thi +s site"; } } use lib "$RealBin/../lib"; use Site::HTML; <-- line 17
Edit:
Whoops! Above I left it as use lib "$RealBin/../lib";
Changing it to use lib "$safepath"; works.
So, at least I know Site::HTML can be used with taint mode. Now to find where it doesn't function.
In reply to Re^3: Debugging a module that's failing under taint mode
by Bod
in thread Debugging a module that's failing under taint mode
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |