[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)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 29 Nov 2012 21:18:54 +0000 (22:18 +0100)
commit7a3090974c4381b45daad3e9d8245343e7406d86
treebd4717255175787c8221feff74b343162cf9f20c
parent36e4088b1a93d602ba516c1a363d4854f3deb486
[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: I2f8fab16e6c605928934267fa9193430ef031bd7
Fixes: #32515
Releases: 6.1, 6.0, 4.7, 4.6
Reviewed-on: http://review.typo3.org/16825
Reviewed-by: Stefan Neufeind
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
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]