mirror of
https://github.com/webmin/webmin.git
synced 2026-08-22 06:50:34 +01:00
Fix log email being sent to bogus address when no destination is set
This commit is contained in:
@@ -7803,7 +7803,7 @@ my $lu = $base_remote_user || $remote_user;
|
||||
my $logemailto;
|
||||
if ($gconfig{'logemail'} eq "*") {
|
||||
$logemailto = $gconfig{'webmin_email_to'};
|
||||
if ($gconfig{'webmin_email_to_name'}) {
|
||||
if ($logemailto && $gconfig{'webmin_email_to_name'}) {
|
||||
$logemailto = "$gconfig{'webmin_email_to_name'} <$logemailto>";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user