[BUGFIX] BE login form gives warnings in RteHtmlParser 31/16731/4
authorJigal van Hemert <jigal@xs4all.nl>
Sun, 25 Nov 2012 16:04:40 +0000 (17:04 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Wed, 3 Apr 2013 05:04:28 +0000 (07:04 +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/16731
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Wouter Wolters
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/core/Classes/Html/RteHtmlParser.php

index 025924b..e49442f 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']) {