From 5159a4ccd741ab5ce3c8f0bdfab63b0bec1d4cde Mon Sep 17 00:00:00 2001
From: Philipp Kitzberger <typo3@kitze.net>
Date: Tue, 12 Sep 2023 13:41:29 +0200
Subject: [PATCH] [BUGFIX] Avoid undefined array key 'casesensitiveComp'

Resolves: #96537
Releases: main, 12.4, 11.5
Change-Id: I0b2b4dbf47d58f21df8ffb3d91a889c22b092280
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81047
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: core-ci <typo3@b13.com>
---
 typo3/sysext/core/Classes/Html/HtmlParser.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typo3/sysext/core/Classes/Html/HtmlParser.php b/typo3/sysext/core/Classes/Html/HtmlParser.php
index 61be53dd7cf4..e8944c7cf9a0 100644
--- a/typo3/sysext/core/Classes/Html/HtmlParser.php
+++ b/typo3/sysext/core/Classes/Html/HtmlParser.php
@@ -541,7 +541,7 @@ class HtmlParser
                                                         $tagAttrib[0][$attr] = $params['list'][0];
                                                     }
                                                 } else {
-                                                    if (!in_array($this->caseShift($tagAttrib[0][$attr] ?? '', $params['casesensitiveComp'] ?? false), (array)$this->caseShift($params['list'], $params['casesensitiveComp'], $tagName))) {
+                                                    if (!in_array($this->caseShift($tagAttrib[0][$attr] ?? '', $params['casesensitiveComp'] ?? false), (array)$this->caseShift($params['list'], $params['casesensitiveComp'] ?? false, $tagName))) {
                                                         $tagAttrib[0][$attr] = $params['list'][0];
                                                     }
                                                 }
-- 
GitLab