From 7f919f5f047ba9622ce791558a5b9be9b0990cde Mon Sep 17 00:00:00 2001 From: Andreas Fernandez <a.fernandez@scripting-base.de> Date: Thu, 1 Dec 2016 20:05:41 +0100 Subject: [PATCH] [BUGFIX] Force string casting of $parserList The method `BackendUtility::explodeSoftRefParserList()` checks whether `$parserList` is an empty string. This check may fail, as the variable may be null instead. `$parserList` is now casted to a string, which converts null to an empty string. Resolves: #78858 Releases: master, 7.6 Change-Id: Ia833fd64f3349c5856a879e917bb3cd6f581caa0 Reviewed-on: https://review.typo3.org/50838 Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Tested-by: Wouter Wolters <typo3@wouterwolters.nl> --- typo3/sysext/backend/Classes/Utility/BackendUtility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/backend/Classes/Utility/BackendUtility.php b/typo3/sysext/backend/Classes/Utility/BackendUtility.php index fb5cc0f5c56d..6446f126207c 100644 --- a/typo3/sysext/backend/Classes/Utility/BackendUtility.php +++ b/typo3/sysext/backend/Classes/Utility/BackendUtility.php @@ -4108,7 +4108,7 @@ class BackendUtility public static function explodeSoftRefParserList($parserList) { // Return immediately if list is blank: - if ($parserList === '') { + if ((string)$parserList === '') { return false; } -- GitLab