mikkoi has asked for the wisdom of the Perl Monks concerning the following question:
I have the following code:
use strict; use warnings; use FindBin 1.51 qw( $RealBin ); use lib "$RealBin/../lib"; use MyLib;
when I run it with Perl 5.28.1 as perl -T ./bin/perl-taint.pl I get the following error:
Insecure dependency in require while running with -T switch at ./bin/p +erl-taint.pl line 7. BEGIN failed--compilation aborted at ./bin/perl-taint.pl line 7.
FindBin operates in BEGIN section, so how - if possible - can I untaint the path?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: FindBin and Tainted
by kcott (Archbishop) on Aug 14, 2020 at 10:25 UTC | |
by mikkoi (Beadle) on Aug 14, 2020 at 22:44 UTC | |
|
Re: FindBin and Tainted
by haj (Vicar) on Aug 14, 2020 at 10:36 UTC | |
by mikkoi (Beadle) on Aug 14, 2020 at 23:57 UTC | |
by haj (Vicar) on Aug 15, 2020 at 08:55 UTC | |
by mikkoi (Beadle) on Aug 15, 2020 at 20:18 UTC |