]> git.proxmox.com Git - proxmox-backup.git/commit - src/server/notifications.rs
server/email_notifications: do not double html escape
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 18 Mar 2021 12:01:06 +0000 (13:01 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 19 Mar 2021 06:02:49 +0000 (07:02 +0100)
commitf24cbee77d98523b05f9f7812a839522d9e7b2e6
treeb48e2f6fb09929303223b7415044c2fdb22fea4f
parent25b4d52dce57831a47b532a331c4877af230ed99
server/email_notifications: do not double html escape

the default escape handler is handlebars::html_escape, but this are
plain text emails and we manually escape them for the html part, so
set the default escape handler to 'no_escape'

this avoids double html escape for the characters: '&"<>' in emails

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/server/email_notifications.rs