[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.7, 4.6, 4.5 Change-Id: Ifda9e397406dd481b634ded22fd13cac90192118 Reviewed-on: https://review.typo3.org/18219 Reviewed-by: Dmitry Dulepov Tested-by: Dmitry Dulepov Reviewed-by: Stefan Neufeind Reviewed-by: Susanne Moog Reviewed-by: Philipp Gampe Tested-by: Philipp Gampe Reviewed-by: Wouter Wolters Tested-by: Wouter Wolters Reviewed-by: Benjamin Mack Tested-by: Benjamin Mack
Showing
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php 4 additions, 4 deletions.../frontend/Classes/ContentObject/ContentObjectRenderer.php
- typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php 12 additions, 0 deletions...nd/Tests/Unit/ContentObject/ContentObjectRendererTest.php
Please register or sign in to comment