Fixed bug #16322: Incorrect regexp in substituteMarkerArray
authorJigal van Hemert <jigal@xs4all.nl>
Mon, 22 Nov 2010 18:36:07 +0000 (18:36 +0000)
committerJigal van Hemert <jigal@xs4all.nl>
Mon, 22 Nov 2010 18:36:07 +0000 (18:36 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9501 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_parsehtml.php

index ea0732c..1fd6a33 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-11-20  Jigal van Hemert  <jigal@xs4all.nl>
+
+       * Fixed bug #16322: Incorrect regexp in substituteMarkerArray
+
 2010-11-22  Ingo Renner  <ingo@typo3.org>
 
        * Fixed bug #16507: stdWrap unavailable after refactoring of tslib_content
index 85dc098..91a72b7 100644 (file)
@@ -320,7 +320,7 @@ class t3lib_parsehtml       {
                                        $wrapArr = array('###', '###');
                                }
 
-                               $content = preg_replace('/'.preg_quote($wrapArr[0]).'([A-Z0-9_-|]*)'.preg_quote($wrapArr[1]).'/is', '', $content);
+                               $content = preg_replace('/' . preg_quote($wrapArr[0]) . '([A-Z0-9_|\-]*)' . preg_quote($wrapArr[1]) . '/is', '', $content);
                        }
                }