Detaint %ENV somewhat more thoroughly (derived from perl5.8.7 perlsec POD).

git-svn-id: https://svn.perl.org/qpsmtpd/trunk@545 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
Devin Carraway 2005-08-26 09:51:57 +00:00
parent 79ecf24218
commit 22fef51c19

View File

@ -68,7 +68,7 @@ for (0..$#LOCALADDR) {
if ($USER =~ /^([\w\-]+)$/) { $USER = $1 } else { &usage }
if ($MAXCONN =~ /^(\d+)$/) { $MAXCONN = $1 } else { &usage }
delete $ENV{ENV};
delete @ENV{'ENV','CDPATH','IFS','BASH_ENV'};
$ENV{PATH} = '/bin:/usr/bin:/var/qmail/bin';
my %childstatus = ();