[BUGFIX] BE login form gives warnings in RteHtmlParser 99/19699/2
authorJigal van Hemert <jigal@xs4all.nl>
Sun, 25 Nov 2012 16:04:40 +0000 (17:04 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 6 Apr 2013 19:00:26 +0000 (21:00 +0200)
Intialize configuration as array to prevent PHP warnings for
Illegal string offset.

Change-Id: Ic7398ba2c041c3278a1bd5562968ac5183643d3d
Fixes: #43291
Releases: 6.1, 6.0, 4.7, 4.5
Reviewed-on: https://review.typo3.org/19699
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/core/Classes/Html/RteHtmlParser.php

index bd986eb..5f129bb 100644 (file)
@@ -80,7 +80,7 @@ class RteHtmlParser extends \TYPO3\CMS\Core\Html\HtmlParser {
        /**
         * @todo Define visibility
         */
-       public $procOptions = '';
+       public $procOptions = array();
 
        // Internal, dynamic
        // Run-away brake for recursive calls.
@@ -209,7 +209,7 @@ class RteHtmlParser extends \TYPO3\CMS\Core\Html\HtmlParser {
        public function RTE_transform($value, $specConf, $direction = 'rte', $thisConfig = array()) {
                // Init:
                $this->tsConfig = $thisConfig;
-               $this->procOptions = $thisConfig['proc.'];
+               $this->procOptions = (array) $thisConfig['proc.'];
                $this->preserveTags = strtoupper(implode(',', \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->procOptions['preserveTags'])));
                // dynamic configuration of blockElementList
                if ($this->procOptions['blockElementList']) {