[BUGFIX] Properly check type of POST vars on clipboard action 00/36700/5
authorMarkus Klein <klein.t3@reelworx.at>
Thu, 5 Feb 2015 23:47:03 +0000 (00:47 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Fri, 6 Feb 2015 12:41:13 +0000 (13:41 +0100)
commit2d2773a54fe2ad8fd38f9c938e91114bf183e406
treee95994b97c0e69e2aa7b119ff85fd7e9c20cd2c3
parent0dc52349a9f0970a17a75c582d4905dbb830b560
[BUGFIX] Properly check type of POST vars on clipboard action

Avoid a PHP warning by checking the type of data retrieved via POST.

"CBC" is an array of checkboxes, which can be null if nothing is selected.
"CBH" is an array of hidden fields. If this is not an array, something
is messed up in HTML generation and an Exception should be thrown then
(because of a PHP warning).

Also adapt the list module code accordingly.

Resolves: #64897
Releases: master, 6.2
Change-Id: Ife7d079a6d666e8bdbbce7b7eef34dbf5636c425
Reviewed-on: http://review.typo3.org/36700
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/filelist/Classes/Controller/FileListController.php
typo3/sysext/recordlist/Classes/RecordList.php