[BUGFIX] Form values with newlines escaped in email
authorHelmut Hummel <helmut.hummel@typo3.org>
Wed, 17 Oct 2012 08:29:56 +0000 (10:29 +0200)
committerDmitry Dulepov <dmitry@typo3.org>
Tue, 27 Nov 2012 11:43:01 +0000 (12:43 +0100)
commit135589061e3017bf122fc8af1fecd56a89427636
tree5c3935cbdface6f4d052f5f2de4e022351f95dd3
parent036f5a0b924caaa2ff8f7e6ebf9732a029acc6e7
[BUGFIX] Form values with newlines escaped in email

nl2br() is executed before htmlspecialchars(). Needs to be
the other way round so the <br/> is not encoded as well.

Change-Id: I8006e27393105dd425a17d14e7d9553e15d797be
Fixes: #32515
Releases: 4.6, 4.7, 6.0
Reviewed-on: http://review.typo3.org/9020
Reviewed-by: Dmitry Dulepov
Tested-by: Dmitry Dulepov
typo3/sysext/form/Classes/View/Mail/Html/Element/AbstractElementView.php
typo3/sysext/form/Tests/Unit/View/Mail/Html/Element/AbstractElementViewTest.php [new file with mode: 0644]