Follow-up to #9994: preg_replace doesn't work with entities_to_utf8 (class.t3lib_cs...
authorSteffen Kamper <info@sk-typo3.de>
Fri, 22 May 2009 19:30:31 +0000 (19:30 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Fri, 22 May 2009 19:30:31 +0000 (19:30 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5483 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_cs.php

index a1aae13..f39eb68 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 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
 
index 4ead83a..247a2f6 100644 (file)
@@ -805,7 +805,7 @@ class t3lib_cs {
                }
 
                $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: