Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Paluszkiewicz <tomasz.paluszkiewicz@gmail.com>2019-02-22 18:19:25 +0300
committerTomasz Paluszkiewicz <tomasz.paluszkiewicz@gmail.com>2019-02-24 22:14:59 +0300
commit65853a3314225f99ae9c553bc150029e53c1b4d6 (patch)
treefe061649fb32692551b283b30745fa7898b45392 /lib/private
parent2083103d0ba8ce41489632ebe240f6dde51baccc (diff)
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')
-rw-r--r--lib/private/Mail/EMailTemplate.php1
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) {