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

ChangeLog
t3lib/class.t3lib_parsehtml.php

index 82d13a6..9e95bc8 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-17  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #15657: IRRE: Foreign selector with groupdb won't add new items (Thanks to Thomas Maroschik)
index a0e5f7e..3539849 100644 (file)
@@ -875,7 +875,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();