Following the excellent advice I received over in 11134028, I have restructured the webserver for the project I have just started. The directory structure is something like this:
So I have a script index.pl in the webroot which is the default when the server provides a page to a browser./home/myusername/website/prod/www <- webroot /home/myusername/website/prod/lib <- scripts /home/myusername/website/prod/template <- you can guess :) /home/myusername/website/test/data
Everything works as expected. Templates are working and scripts are called as expected. Until I turn on taint mode. Then I get this error:
This is the start of index.pl:Insecure dependency in require while running with -T switch at index.p +l line 8. BEGIN failed--compilation aborted at index.pl line 8.
Am I right that the error I get means that Site::HTML won't work under taint mode?#!/usr/bin/perl -T use CGI::Carp qw(fatalsToBrowser); use FindBin qw($RealBin); use lib "$RealBin/../lib"; use Site::HTML; <-- line 8 use Site::Wayfinder; use strict; use warnings; my $html = Site::HTML->new; $html->head;
I've deliberately not shared the code of Site::HTML as I would prefer to understand how to debug this problem rather than just being given the answer of what is wrong in that module. Happy to share some of the module if necessary...
In reply to Debugging a module that's failing under taint mode by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |