in reply to Re: 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
D:\tmp\pm>type findbin_taint.pl use strict; use warnings; use FindBin qw($RealBin); my $my_lib; BEGIN { $RealBin =~ m/(.+)/; # just a demo, +you should only accept a safe path $my_lib = "$1/../lib"; } use lib $my_lib; print join"\n",@INC; use PadWalker; # no matter wha +t you use will fail if @INC has a tainted entry D:\tmp\pm>perl -T findbin_taint.pl D:/tmp/pm/../lib C:/Strawberry/perl/site/lib/MSWin32-x64-multi-thread C:/Strawberry/perl/site/lib C:/Strawberry/perl/vendor/lib C:/Strawberry/perl/lib D:\tmp\pm>
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Debugging a module that's failing under taint mode
by Bod (Parson) on Jul 01, 2021 at 22:33 UTC | |
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 |