[TYPO3-core] preg_replace / back references

Wolfgang Klinger wolfgang at stufenlos.net
Sat Jul 7 12:05:47 CEST 2007


*hiya!*

On Jul 7, 2007, at 2:05 AM, Michael Stucki wrote:
>> 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.

Committed to trunk


bye
Wolfgang



More information about the TYPO3-team-core mailing list