]> git.proxmox.com Git - pve-manager.git/commitdiff
vzdump: sendmail: fix html by closing the tags
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 21 Dec 2020 13:48:17 +0000 (14:48 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 21 Dec 2020 14:29:02 +0000 (15:29 +0100)
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/VZDump.pm

index f75e4b16c83490a18b41613deb6f9119f4c069bf..3b8645143be1454b50c3c18c05d64d576615538b 100644 (file)
@@ -394,13 +394,15 @@ sub sendmail {
     }
     $html_log_part .= escape_html($detail_post) if defined($detail_post);
     $html_log_part .= "</pre>";
-    my $html_end .= "\n</body></html>\n";
+    my $html_end = "\n</body></html>\n";
     # end html part
 
     if (length($text) + length($text_log_part) +
-       length($html) + length($html_log_part) < MAX_MAIL_SIZE)
+       length($html) + length($html_log_part) +
+       length($html_end) < MAX_MAIL_SIZE)
     {
        $html .= $html_log_part;
+       $html .= $html_end;
        $text .= $text_log_part;
     } else {
        my $msg = "Log output was too long to be sent by mail. ".