Issue Bug Closed

#18922t3lib_parsehtml::substituteMarkerArray() deletes too much if wrap is not set

Francois Suter 06/07/08, 22:19 updated 10/29/08, 19:00

Description

In RFC #18115 a 5th parameter was added to t3lib_parsehtml::substituteMarkerArray() to remove unused markers. It does so with the following line:

$content = preg_replace(‘/’.preg_quote($wrapArr0).’([A-Z0-9_-|]*)’.preg_quote($wrapArr1).’/is’, ‘’, $content);

This will fail if the marker wrap is not defined, because the default wrap is ### where the $wrapArr is empty when no wrap is passed to this method.

The solution is to initialise $wrapArr when no marker wrap argument was passed.

(issue imported from #M8637)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.