[BUGFIX] Respect line breaks in stdWrap.cropHTML 99/19499/2
authorAlexander Stehlik <alexander.stehlik@googlemail.com>
Tue, 12 Feb 2013 11:35:00 +0000 (12:35 +0100)
committerBenjamin Mack <benni@typo3.org>
Fri, 5 Apr 2013 19:45:27 +0000 (21:45 +0200)
commit422550ff39c456f2e2b6ad90091186c244031af0
tree8a64cecb03e7a8d27ed9e16155b983a8615fdb63
parentedb9fd3414de30a3eb6ede157ff95ccb130a5407
[BUGFIX] Respect line breaks in stdWrap.cropHTML

By using the PCRE_DOTALL (/s) pattern modifier in the cropHTML
regular expression for preserving HTML entities the dot in the
pattern will include line breaks.

Resolves: #28741
Releases: 6.1, 6.0, 4.5
Change-Id: I8ce6b3e3472fc6d117474f8b8c3dfda6b26ab0a1
Reviewed-on: https://review.typo3.org/19499
Reviewed-by: Mario Rimann
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php