[BUGFIX] Enhancing StripNewLinesFilter for Windows line breaks 78/36578/2
authorRonny Vorpahl <vorpahl@artplan21.de>
Sun, 1 Feb 2015 11:20:58 +0000 (12:20 +0100)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Sun, 1 Feb 2015 13:52:03 +0000 (14:52 +0100)
commitb023f6e91b5b9c8006f27fd3837b79a2c10b49dd
treedbfb868e7552ad4f2a237619477fd5f4d114b1b9
parentb6d5f1362119558a48b5a540535ce9def2ae3a82
[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/36578
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
typo3/sysext/form/Classes/Filter/StripNewLinesFilter.php
typo3/sysext/form/Tests/Unit/Filter/StripNewLinesFilterTest.php