[TYPO3-core] preg_replace / back references
Michael Stucki
michael at typo3.org
Sat Jul 7 02:05:54 CEST 2007
Hi Wolfgang,
> On Jun 25, 2007, at 2:01 PM, Dmitry Dulepov wrote:
>> Wolfgang Klinger wrote:
>>> We found a bug in prefixLocalAnchorsWithScript() in tslib_fe
>>> where the back reference in the regular expression is written
>>> as $1 and the we had numeric URLs here, so this ended up in something
>>> like $12345 (and that makes no sense).
>>>
>>> To fix this the correct usage is ${1}.
>
> Patch attached.
> Please approve.
I didn't test, consider it as a no-brainer.
It will surely not break, so if you say it helps you, you'll have my +1.
- michael
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
More information about the TYPO3-team-core
mailing list