This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: taint checking for: use lib "$ENV{'EVIL'}"
authorGraham Barr <gbarr@pobox.com>
Sat, 17 Oct 1998 20:42:41 +0000 (15:42 -0500)
committerGurusamy Sarathy <gsar@cpan.org>
Sun, 25 Oct 1998 07:14:41 +0000 (07:14 +0000)
Message-ID: <19981017204241.G510@pobox.com>

p4raw-id: //depot/perl@2071

pp_ctl.c

index f5b45b3..ec53dad 100644 (file)
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -2651,6 +2651,7 @@ PP(pp_require)
 #else
                sv_setpvf(namesv, "%s/%s", dir, name);
 #endif
+               TAINT_PROPER("require");
                tryname = SvPVX(namesv);
                tryrsfp = PerlIO_open(tryname, PERL_SCRIPT_MODE);
                if (tryrsfp) {