A
Asterbing
Considering a script with a line like this :
require 'config.cgi';
When I activate the taint mode through "#!/usr/bin/perl -T" and adding
"use CGI::Carp qw/fatalsToBrowser/;" for the purpose to see tatal errors
on browser, I'm getting this error "Can't locate config.cgi in @INC".
According to what I've read, it seems normal since taint mode remove the
"." from @INC.
I don't wish to indicate an absolute path which would be to adjust for
every install on a new server, thus I've just modified the require line
like this : "require './config.cgi';
But... When I run the script now I'm just getting a direct perl.exe
crash without any message !
How to write this require line with taint mode ?
require 'config.cgi';
When I activate the taint mode through "#!/usr/bin/perl -T" and adding
"use CGI::Carp qw/fatalsToBrowser/;" for the purpose to see tatal errors
on browser, I'm getting this error "Can't locate config.cgi in @INC".
According to what I've read, it seems normal since taint mode remove the
"." from @INC.
I don't wish to indicate an absolute path which would be to adjust for
every install on a new server, thus I've just modified the require line
like this : "require './config.cgi';
But... When I run the script now I'm just getting a direct perl.exe
crash without any message !
How to write this require line with taint mode ?