Merge pull request #14346 from tomaski/master

fix(EMailTemplate): malformed HTML in some cases
This commit is contained in:
Morris Jobke 2019-02-26 14:41:23 +01:00 committed by GitHub
commit 407c7c2ad3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -435,6 +435,7 @@ EOF;
$text = htmlspecialchars($text); $text = htmlspecialchars($text);
} }
$this->ensureBodyListClosed();
$this->ensureBodyIsOpened(); $this->ensureBodyIsOpened();
$this->htmlBody .= vsprintf($this->bodyText, [$text]); $this->htmlBody .= vsprintf($this->bodyText, [$text]);