mirror of
https://git.proxmox.com/git/pve-common
synced 2025-04-29 16:08:48 +00:00
sendmail: code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
87ff065c98
commit
a7886364a7
@ -1450,16 +1450,14 @@ sub sendmail {
|
||||
|
||||
$mailto = [ $mailto ] if !ref($mailto);
|
||||
|
||||
foreach (@$mailto) {
|
||||
die "illegal character in mailto address\n"
|
||||
if ($_ =~ $mail_re);
|
||||
for my $to (@$mailto) {
|
||||
die "illegal character in mailto address\n" if $to =~ $mail_re;
|
||||
}
|
||||
|
||||
my $rcvrtxt = join (', ', @$mailto);
|
||||
|
||||
$mailfrom = $mailfrom || "root";
|
||||
die "illegal character in mailfrom address\n"
|
||||
if $mailfrom =~ $mail_re;
|
||||
die "illegal character in mailfrom address\n" if $mailfrom =~ $mail_re;
|
||||
|
||||
$author = $author // 'Proxmox VE';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user