From aef7a21472ea83e1bc9447a0729ce444391c9883 Mon Sep 17 00:00:00 2001
From: Jigal van Hemert <jigal@xs4all.nl>
Date: Sun, 25 Nov 2012 17:04:40 +0100
Subject: [PATCH] [BUGFIX] BE login form gives warnings in RteHtmlParser

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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/typo3/sysext/core/Classes/Html/RteHtmlParser.php b/typo3/sysext/core/Classes/Html/RteHtmlParser.php
index 025924bf780c..e49442fa183d 100644
--- a/typo3/sysext/core/Classes/Html/RteHtmlParser.php
+++ b/typo3/sysext/core/Classes/Html/RteHtmlParser.php
@@ -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']) {
-- 
GitLab