2009-05-22 Steffen Kamper <info@sk-typo3.de>
+ * Follow-up to #9994: preg_replace doesn't work with entities_to_utf8 (class.t3lib_cs.php)
* Follow-up to #9994: preg_replace doesn't work with highlight xml (class.t3lib_syntaxhl.php)
* Follow-up to #11044: mass uploader didn't worked because missing settings
}
$token = md5(microtime());
- $parts = explode($token,preg_replace('/(&([#[:alnum:]]*);)/',$token.'\2'.$token,$str));
+ $parts = explode($token, preg_replace('/(&([#[:alnum:]]*);)/', $token . '${2}' . $token, $str));
foreach($parts as $k => $v) {
if ($k%2) {
if (substr($v,0,1)=='#') { // Dec or hex entities: