[BUGFIX] Enhancing StripNewLinesFilter for Windows line breaks 64/36564/3
authorRonny Vorpahl <vorpahl@artplan21.de>
Sun, 1 Feb 2015 11:20:58 +0000 (12:20 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sun, 1 Feb 2015 12:51:34 +0000 (13:51 +0100)
commitdb8c98c6d2b0c94340f7aee629b5bad1af42cc2b
tree73e6afbb3362e471be09e916e559bcd98b4fa559
parent7e50e17911b4ffaaf8971c0af03cf80370b38cfe
[BUGFIX] Enhancing StripNewLinesFilter for Windows line breaks

Currently the filter does not handle Windows line breaks.
This results in unfiltered Windows line breaks.
This patch adds Windows line break support to the filter function.
Furthermore the unit tests for the filter are extended to check
Windows line breaks as well.

Resolves: #64710
Releases: master,6.2
Change-Id: I503657daaf693f1a28589bc7d8a9321ebae54e61
Reviewed-on: http://review.typo3.org/36564
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Tested-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/form/Classes/Filter/StripNewLinesFilter.php
typo3/sysext/form/Tests/Unit/Filter/StripNewLinesFilterTest.php