in reply to Re^2: Debugging a module that's failing under taint mode
in thread Debugging a module that's failing under taint mode
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Debugging a module that's failing under taint mode
by LanX (Saint) on Jul 01, 2021 at 22:35 UTC | |
by Bod (Parson) on Jul 01, 2021 at 22:38 UTC | |
by LanX (Saint) on Jul 01, 2021 at 22:48 UTC |