[TYPO3-core] RFC #16322: bugfix: Incorrect regexp in substituteMarkerArray

Jigal van Hemert jigal at xs4all.nl
Tue Nov 9 22:20:39 CET 2010


Hi,

This is a SVN patch request.

Type: Bugfix (no brainer)

BT reference: http://bugs.typo3.org/view.php?id=16322

Branches: trunk (and earlier)

Problem:
t3lib_parsehtml::substituteMarkerArray() contains a regular expression 
to remove unused markers. This contains a small error where a '-' is 
interpreted as a range operator.
Markers with dashes will not be removed with this regexp.

Solution: fix regular expression (move dash outside range)

How to test:
Include an unused marker with dash ('-') in it in a template, call 
cOjb->substituteMarkerArray() with the fifth parameter set to TRUE.

-- 
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16322.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101109/1d817a47/attachment.asc>


More information about the TYPO3-team-core mailing list