[BUGFIX] FormDataTraverser must check data type before explode() 95/43795/2
authorMarkus Klein <markus.klein@typo3.org>
Sun, 4 Oct 2015 17:00:23 +0000 (19:00 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 5 Oct 2015 13:31:06 +0000 (15:31 +0200)
Resolves: #70297
Releases: master
Change-Id: Ied26fe591fc4b20df7d50a51cf2ce3dc3b2e025d
Reviewed-on: http://review.typo3.org/43795
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Form/FormDataTraverser.php

index d405682..cddd993 100644 (file)
@@ -137,7 +137,9 @@ class FormDataTraverser {
                        // @todo: the first value was not processed with old data preprocessor and contains no |
                        // @todo: this is simuluated here
                        if ($count === 1) {
-                               $value = explode('|', $value);
+                               if (!is_array($value)) {
+                                       $value = explode('|', $value);
+                               }
                                $value = $value[0];
                        }