[BUGFIX] Properly check type of POST vars on clipboard action
[Packages/TYPO3.CMS.git] / typo3 / sysext / filelist / Classes / Controller / FileListController.php
index 0586f61..6c14963 100644 (file)
@@ -282,7 +282,7 @@ class FileListController {
                        $this->filelist->clipObj->initializeClipboard();
                        $CB = GeneralUtility::_GET('CB');
                        if ($this->cmd == 'setCB') {
-                               $CB['el'] = $this->filelist->clipObj->cleanUpCBC(array_merge(GeneralUtility::_POST('CBH'), GeneralUtility::_POST('CBC')), '_FILE');
+                               $CB['el'] = $this->filelist->clipObj->cleanUpCBC(array_merge(GeneralUtility::_POST('CBH'), (array)GeneralUtility::_POST('CBC')), '_FILE');
                        }
                        if (!$this->MOD_SETTINGS['clipBoard']) {
                                $CB['setP'] = 'normal';