diff -Nur --no-dereference smeserver-domains-1.4.old/root/etc/e-smith/web/functions/dungog-domains smeserver-domains-1.4/root/etc/e-smith/web/functions/dungog-domains --- smeserver-domains-1.4.old/root/etc/e-smith/web/functions/dungog-domains 2016-04-28 07:31:09.000000000 -0400 +++ smeserver-domains-1.4/root/etc/e-smith/web/functions/dungog-domains 2021-05-31 14:52:57.410000000 -0400 @@ -38,7 +38,7 @@ # external programs do not cause results to be tainted. See # "perlsec" manual page for details. - $ENV {'PATH'} = ''; + $ENV {'PATH'} = '/usr/sbin:/usr/bin:/usr/local/bin'; $ENV {'SHELL'} = '/bin/bash'; delete $ENV {'ENV'}; } @@ -355,7 +355,7 @@ { (my $u, my $d) = split (/@/, $_); - push (@vdemail2, $u) if ($d eq $domain); + push (@vdemail2, $u) if (defined $d and $d eq $domain); } #are there any ? diff -Nur --no-dereference smeserver-domains-1.4.old/root/etc/e-smith/web/functions/userpanel-domains smeserver-domains-1.4/root/etc/e-smith/web/functions/userpanel-domains --- smeserver-domains-1.4.old/root/etc/e-smith/web/functions/userpanel-domains 2016-04-28 07:31:09.000000000 -0400 +++ smeserver-domains-1.4/root/etc/e-smith/web/functions/userpanel-domains 2021-05-31 14:54:10.688000000 -0400 @@ -36,7 +36,7 @@ # external programs do not cause results to be tainted. See # "perlsec" manual page for details. - $ENV {'PATH'} = ''; + $ENV {'PATH'} = '/usr/sbin:/usr/bin:/usr/local/bin'; $ENV {'SHELL'} = '/bin/bash'; delete $ENV {'ENV'}; } @@ -227,7 +227,7 @@ { (my $u, my $d) = split (/@/, $_); - push (@vdemail2, $u) if ($d eq $domain); + push (@vdemail2, $u) if (defined $d and $d eq $domain); } #are there any ?