[BUGFIX] Use trimExplode() for pageOverlayFields
authorGeorg Ringer <mail@ringerge.org>
Tue, 16 Aug 2011 06:26:18 +0000 (08:26 +0200)
committerGeorg Ringer <mail@ringerge.org>
Wed, 17 Aug 2011 06:22:38 +0000 (08:22 +0200)
Currently explode() is used for pageOverLayFields which requires a list
without any whitespaces. Using t3lib_div::trimExplode() improves
the usability for integrators and reduces possibilities of not working
configurations

Change-Id: I7c6c3412c1a1a250aac273169060dbd4aaf4e1ca
Resolves: #28916
Releases: 4.4, 4.5, 4.6
Reviewed-on: http://review.typo3.org/4359
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
t3lib/class.t3lib_page.php

index f5138a1..f541c35 100644 (file)
@@ -266,7 +266,7 @@ class t3lib_pageSelect {
 
                        // If language UID is different from zero, do overlay:
                if ($lUid) {
-                       $fieldArr = explode(',', $GLOBALS['TYPO3_CONF_VARS']['FE']['pageOverlayFields']);
+                       $fieldArr = t3lib_div::trimExplode(',', $GLOBALS['TYPO3_CONF_VARS']['FE']['pageOverlayFields']);
                        if (is_array($pageInput)) {
                                $page_id = $pageInput['uid']; // Was the whole record
                                $fieldArr = array_intersect($fieldArr, array_keys($pageInput)); // Make sure that only fields which exist in the incoming record are overlaid!