From 907a64c41cb7ff023c27fd63d6f1d8135878c424 Mon Sep 17 00:00:00 2001 From: Steffen Kamper Date: Fri, 22 May 2009 18:36:34 +0000 Subject: [PATCH] Follow-up to #9994: preg_replace doesn't work with highlight xml (class.t3lib_syntaxhl.php) git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5479 709f56b5-9817-0410-a4d7-c38de5d9e867 --- ChangeLog | 1 + t3lib/class.t3lib_syntaxhl.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a2a403f4478..cbea6f9ccd6 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2009-05-22 Steffen Kamper + * 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 diff --git a/t3lib/class.t3lib_syntaxhl.php b/t3lib/class.t3lib_syntaxhl.php index be556f952e9..befb24bf8ae 100644 --- a/t3lib/class.t3lib_syntaxhl.php +++ b/t3lib/class.t3lib_syntaxhl.php @@ -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); -- 2.20.1