Follow-up to #9994: preg_replace doesn't work with highlight xml (class.t3lib_syntaxh...
authorSteffen Kamper <info@sk-typo3.de>
Fri, 22 May 2009 18:36:34 +0000 (18:36 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Fri, 22 May 2009 18:36:34 +0000 (18:36 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5479 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_syntaxhl.php

index a2a403f..cbea6f9 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 highlight xml (class.t3lib_syntaxhl.php)
        * Follow-up to #11044: mass uploader didn't worked because missing settings
 
 2009-05-22  Oliver Hader  <oliver@typo3.org>
index be556f9..befb24b 100644 (file)
@@ -380,7 +380,7 @@ class t3lib_syntaxhl {
                $token = md5(microtime());
 
                        // Markup all tag names with token.
-               $markUpStr = preg_replace('/<([[:alnum:]_]+)[^>]*>/',$token.'\1'.$token,$str);
+               $markUpStr = preg_replace('/<([[:alnum:]_]+)[^>]*>/', $token . '${1}' . $token, $str);
 
                        // Splitting by token:
                $parts = explode($token,$markUpStr);