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

ChangeLog
t3lib/class.t3lib_parsehtml.php

index f970479..e009b6c 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.3.9
+
 2010-12-20  Tolleiv Nietsch  <typo3@tolleiv.de>
 
        * Fixed bug #16134: TYPO3 doesn't always fix permissions for new files
index 12a3d15..df60877 100644 (file)
@@ -876,8 +876,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();