[BUGFIX] Force string casting of $parserList 38/50838/3
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Thu, 1 Dec 2016 19:05:41 +0000 (20:05 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 1 Dec 2016 20:54:22 +0000 (21:54 +0100)
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

index fb5cc0f..6446f12 100644 (file)
@@ -4108,7 +4108,7 @@ class BackendUtility
     public static function explodeSoftRefParserList($parserList)
     {
         // Return immediately if list is blank:
-        if ($parserList === '') {
+        if ((string)$parserList === '') {
             return false;
         }