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:
parent
79ecf24218
commit
22fef51c19
@ -68,7 +68,7 @@ for (0..$#LOCALADDR) {
|
|||||||
if ($USER =~ /^([\w\-]+)$/) { $USER = $1 } else { &usage }
|
if ($USER =~ /^([\w\-]+)$/) { $USER = $1 } else { &usage }
|
||||||
if ($MAXCONN =~ /^(\d+)$/) { $MAXCONN = $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';
|
$ENV{PATH} = '/bin:/usr/bin:/var/qmail/bin';
|
||||||
|
|
||||||
my %childstatus = ();
|
my %childstatus = ();
|
||||||
|
Loading…
Reference in New Issue
Block a user