[TYPO3-core] preg_replace / back references

Wolfgang Klinger wolfgang at stufenlos.net
Mon Jun 25 12:56:58 CEST 2007


*hiya!*

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?


bye
Wolfgang




More information about the TYPO3-team-core mailing list