diff options
author | Tomasz Paluszkiewicz <tomasz.paluszkiewicz@gmail.com> | 2019-02-22 16:19:25 +0100 |
---|---|---|
committer | Tomasz Paluszkiewicz <tomasz.paluszkiewicz@gmail.com> | 2019-02-24 20:14:59 +0100 |
commit | 65853a3314225f99ae9c553bc150029e53c1b4d6 (patch) | |
tree | fe061649fb32692551b283b30745fa7898b45392 /lib/private/Mail/EMailTemplate.php | |
parent | 2083103d0ba8ce41489632ebe240f6dde51baccc (diff) | |
download | nextcloud-server-65853a3314225f99ae9c553bc150029e53c1b4d6.tar.gz nextcloud-server-65853a3314225f99ae9c553bc150029e53c1b4d6.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/private/Mail/EMailTemplate.php')
-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) { |