[TYPO3-core] RFC: Bug #13972: cropHTML uses faulty reg exp for HTML entities

Ralf Hettinger ng at ralfhettinger.de
Thu Apr 15 13:55:27 CEST 2010


This is an SVN patch request.

Type:
Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=13972

Branches:
4.3 (patch applies with offset) & trunk

Problem:
The feature stdWrap.cropHTML uses a faulty regular expression / search
pattern for treating encoded HTML entities as a single character, which
is supposed to avoid cropping in between such entities and counting them
as one character. The search pattern as used in the current preg_match
currently always crops after the first semicolon and won't recognize
such entites reliably.

Solution:
Use another search pattern (can be much simpler, too).

Cheers
Ralf
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0013972_4.4-rev7370.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100415/698145e2/attachment.asc>


More information about the TYPO3-team-core mailing list