Fixed bug #1318: 'removeTag' does not remove closing tags
authorXavier Perseguers <typo3@perseguers.ch>
Mon, 18 Oct 2010 11:33:35 +0000 (11:33 +0000)
committerXavier Perseguers <typo3@perseguers.ch>
Mon, 18 Oct 2010 11:33:35 +0000 (11:33 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@9140 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_parsehtml.php

index 1aaaeb6..d7361bb 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-10-18  Xavier Perseguers  <typo3@perseguers.ch>
+
+       * Fixed bug #1318: 'removeTag' does not remove closing tags
+
 2010-10-11  Steffen Kamper  <steffen@typo3.org>
 
        * Fixed bug #12376: typo3temp got filled with thousands of javascript_* files (Thanks to Georg Ringer)
index 313aeb7..bba1f0f 100644 (file)
@@ -802,7 +802,7 @@ class t3lib_parsehtml       {
 
                                                                // rmTagIfNoAttrib
                                                        if ($endTag || trim($tagParts[1]) || !$tags[$tagName]['rmTagIfNoAttrib'])       {
-                                                               $setTag=1;
+                                                               $setTag = !$tags[$tagName]['rmTagIfNoAttrib'];
 
                                                                if ($tags[$tagName]['nesting']) {
                                                                        if (!is_array($tagRegister[$tagName]))  $tagRegister[$tagName]=array();