Fixed bug #16760: RTE transformation removes all span tags on save after upgrade...
authorStanislas Rolland <typo3@sjbr.ca>
Tue, 21 Dec 2010 20:25:12 +0000 (20:25 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Tue, 21 Dec 2010 20:25:12 +0000 (20:25 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9867 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_parsehtml.php

index 2760285..b67f7e9 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-12-21  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Fixed bug #16760: RTE transformation removes all span tags on save after upgrade TYPO3 4.4.5
+
 2010-12-21  Steffen Kamper  <steffen@typo3.org>
 
        * Fixed bug #16802: iFramePanel needs function to detect id in URL
index 796a740..0093e91 100644 (file)
@@ -874,8 +874,11 @@ class t3lib_parsehtml {
 
                                                                // rmTagIfNoAttrib
                                                        if ($endTag || trim($tagParts[1]) || !$tags[$tagName]['rmTagIfNoAttrib']) {
-                                                               $setTag = !$tags[$tagName]['rmTagIfNoAttrib'];
-
+                                                               $setTag = 1;
+                                                                       // Remove this closing tag if $tagName was among $TSconfig['removeTags']
+                                                               if ($endTag && $tags[$tagName]['allowedAttribs'] === 0 && $tags[$tagName]['rmTagIfNoAttrib'] === 1) {
+                                                                       $setTag = 0;
+                                                               }
                                                                if ($tags[$tagName]['nesting']) {
                                                                        if (!is_array($tagRegister[$tagName])) {
                                                                                $tagRegister[$tagName] = array();