]> git.proxmox.com Git - proxmox-backup.git/commitdiff
send_job_status_mail: corectly escape html characters
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 29 Oct 2020 10:22:08 +0000 (11:22 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 29 Oct 2020 10:22:08 +0000 (11:22 +0100)
src/server/email_notifications.rs

index 7362800619dd5ea8d9b0b039e115d3f2d96137a0..4362b2b92e9954af0158924b73a0fabc265df59d 100644 (file)
@@ -96,7 +96,7 @@ fn send_job_status_mail(
 
     // Note: OX has serious problems displaying text mails,
     // so we include html as well
-    let html = format!("<html><body><pre>\n{}\n<pre>", text);
+    let html = format!("<html><body><pre>\n{}\n<pre>", handlebars::html_escape(text));
 
     let nodename = proxmox::tools::nodename();