[BUGFIX] Properly check type of POST vars on clipboard action 14/36714/2
authorMarkus Klein <klein.t3@reelworx.at>
Thu, 5 Feb 2015 23:47:03 +0000 (00:47 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Fri, 6 Feb 2015 13:09:59 +0000 (14:09 +0100)
commit6909145fc1b628cda09a6b36c443897e427feed6
tree71c0d729e65d6ed84be5d2840b4b0d7b8f06b252
parent4c0aea5b768025053337c4daf72ebf62805d5d11
[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/36714
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