[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:22:00 +0000 (22:22 +0100)
commit98eacf9c33a444fe5e18fa65bb8bf42693559fab
tree5d61490f6899555ad81ec6832cfb03c7f3e469da
parent23804c63ce5906ad406877dad34b933d2cf086c5
[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/16871
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]