Parameter $deleteUnused of parsehtml::substituteMarkerArray was deleting too much...
authorErnesto Baschny <ernst@cron-it.de>
Mon, 9 Jun 2008 14:24:54 +0000 (14:24 +0000)
committerErnesto Baschny <ernst@cron-it.de>
Mon, 9 Jun 2008 14:24:54 +0000 (14:24 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3771 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_parsehtml.php

index 95be177..289fa9d 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-06-09  Ernesto Baschny  <ernst@cron-it.de>
+
+       * Fixed bug #8637: Parameter $deleteUnused of parsehtml::substituteMarkerArray was deleting too much if no $wrap was set (thanks to Francois Suter)
+
 2008-06-08  Thomas Hempel  <thomas@typo3.org>
 
        * Fixed bug #8483: Lines break when longer as the width of the window (t3editor) (Patch by Tobias Liebig)
index 88212b8..00b12db 100644 (file)
@@ -258,6 +258,9 @@ class t3lib_parsehtml       {
                        }
 
                        if ($deleteUnused) {
+                               if (empty($wrap)) {
+                                       $wrapArr = array('###', '###');
+                               }
                                $content = preg_replace('/'.preg_quote($wrapArr[0]).'([A-Z0-9_-|]*)'.preg_quote($wrapArr[1]).'/is', '', $content);
                        }
                }