fixed bug where html in plaintext emails are interpreted as html.

This commit is contained in:
Synox 2018-01-19 21:50:31 +01:00
parent b1de900ce4
commit 6572548b58
2 changed files with 2 additions and 1 deletions

View file

@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
- fix: restore focus on reload - fix: restore focus on reload
- Added $config['prefer_plaintext'] = true; Prefer HTML or Text and removed toggle buttons. - Added $config['prefer_plaintext'] = true; Prefer HTML or Text and removed toggle buttons.
- #33 improve button style - #33 improve button style
- fixed bug where html in plaintext emails are interpreted as html.
### Added ### Added
- Added multiple domain support (https://github.com/synox/disposable-mailbox/issues/21) - Added multiple domain support (https://github.com/synox/disposable-mailbox/issues/21)

View file

@ -221,7 +221,7 @@ $purifier = new HTMLPurifier($purifier_config);
<?php <?php
$safeHtml = $purifier->purify($email->textHtml); $safeHtml = $purifier->purify($email->textHtml);
$safeText = $purifier->purify($email->textPlain); $safeText = htmlspecialchars($email->textPlain);
$safeText = nl2br($safeText); $safeText = nl2br($safeText);
$safeText = \AutoLinkExtension::auto_link_text($safeText); $safeText = \AutoLinkExtension::auto_link_text($safeText);