#9117: t3lib_parsehtml_proc removes valid attributes of SPAN tags
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Tue, 4 Nov 2008 20:54:48 +0000 (20:54 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Tue, 4 Nov 2008 20:54:48 +0000 (20:54 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@4420 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_parsehtml_proc.php

index ab647e1..cfa87cd 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 2008-11-04  Martin Kutschker  <masi@typo3.org>
 
        * Fixed bug #9734: User selector in Web>Access doesn't work (thanks to Andreas Kundoch)
+       * Fixed bug #9117: t3lib_parsehtml_proc removes valid attributes of SPAN tags
 
 2008-11-01  Martin Kutschker  <masi@typo3.org>
 
index b2020eb..f99b98d 100755 (executable)
@@ -234,12 +234,12 @@ class t3lib_parsehtml_proc extends t3lib_parsehtml {
                        // Init:
                $this->procOptions = $thisConfig['proc.'];
                $this->preserveTags = strtoupper(implode(',',t3lib_div::trimExplode(',',$this->procOptions['preserveTags'])));
-               
+
                        // dynamic configuration of blockElementList
                if ($this->procOptions['blockElementList']) {
                        $this->blockElementList = $this->procOptions['blockElementList'];
                }
-               
+
                        // Get parameters for rte_transformation:
                $p = $this->rte_p = t3lib_BEfunc::getSpecConfParametersFromArray($specConf['rte_transform']['parameters']);
 
@@ -1146,7 +1146,7 @@ class t3lib_parsehtml_proc extends t3lib_parsehtml {
                                        if (isset($keepTags['span']))           {
                                                $classes=array_merge(array(''),$this->allowedClasses);
                                                $keepTags['span']=array(
-                                                       'allowedAttribs' => 'class,style,xml:lang',
+                                                       'allowedAttribs' => 'id,class,style,title,lang,xml:lang,dir',
                                                        'fixAttrib' => Array(
                                                                'class' => Array (
                                                                        'list' => $classes,