[TYPO3-core] preg_replace / back references

Dmitry Dulepov dmitry at typo3.org
Mon Jun 25 14:01:43 CEST 2007


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}.
> 
> Now my question is if I should check for other occurences
> and we "fix" them all together at once?

A single patch for the issue would be nice.

-- 
Dmitry Dulepov
TYPO3 freelancer / TYPO3 core team member
Web: http://typo3bloke.net/
Skype: callto:liels_bugs


More information about the TYPO3-team-core mailing list