Commit ced13e5c authored by Tino Goratsch's avatar Tino Goratsch

Correctly escape the special HTML characters, so that the Email sending isn't breaking

parent ae404fe1
......@@ -347,7 +347,7 @@ class Mailer
$mail = [
'charset' => 'UTF-8',
'title' => $this->subject,
'body' => !empty($this->htmlBody) ? $this->htmlBody : $this->stringFormatter->nl2p($this->body),
'body' => !empty($this->htmlBody) ? $this->htmlBody : $this->stringFormatter->nl2p(htmlspecialchars($this->body)),
'signature' => $this->getHtmlSignature(),
'url_web_view' => $this->urlWeb
];
......
......@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [4.12.2] - 2017-08-16
### Fixed
- Correctly escape the special HTML characters, so that the Email sending isn't breaking
## [4.12.1] - 2017-08-14
### Fixed
- Fixed a BC break inside the `Mailer` class which came with the introduction of the `MailerMessage` class
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment