diff options
author | Tomasz Paluszkiewicz <tomasz.paluszkiewicz@gmail.com> | 2019-02-22 16:19:25 +0100 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2019-02-26 13:42:40 +0000 |
commit | 22cfc5b87f64de47c342329dde60ede13e43b4cf (patch) | |
tree | e4637f09d8dbeb89f86f48a55e2229586e0e1c62 /lib | |
parent | bb6f832ec3b9229052429828ca3bac46da5753da (diff) | |
download | nextcloud-server-22cfc5b87f64de47c342329dde60ede13e43b4cf.tar.gz nextcloud-server-22cfc5b87f64de47c342329dde60ede13e43b4cf.zip |
fix(EMailTemplate): malformed HTML in some cases
when an addBodyListItem() is not directly followed by addBodyButton(), resulting HTML is broken
Signed-off-by: Tomasz Paluszkiewicz <tomasz.paluszkiewicz@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Mail/EMailTemplate.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Mail/EMailTemplate.php b/lib/private/Mail/EMailTemplate.php index 05a884a67fa..d1a959b5410 100644 --- a/lib/private/Mail/EMailTemplate.php +++ b/lib/private/Mail/EMailTemplate.php @@ -436,6 +436,7 @@ EOF; } $this->ensureBodyIsOpened(); + $this->ensureBodyListClosed(); $this->htmlBody .= vsprintf($this->bodyText, [$text]); if ($plainText !== false) { |