[BUGFIX] BackendUtility::viewOnClick() called with non-integer 51/22951/5
authorOliver Hader <oliver@typo3.org>
Thu, 8 Aug 2013 10:48:24 +0000 (12:48 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 11 Oct 2013 14:07:46 +0000 (16:07 +0200)
commitb7bdd84177ef69fca91430409df3280804395680
tree0c8743f866fddd93d96e343eeb96123c70cbd5eb
parentfdf880103d915c8e5488492c4b3946ebeba226ed
[BUGFIX] BackendUtility::viewOnClick() called with non-integer

The origin is in DatabaseRecordList::makeControl() that
tries to create a preview link with the page id "243#33163"
- more strict checks will deny this request because it's not
the expected integer value. Thus, BackendUtility::viewOnClick()
is called with a string instead of an integer.
This happens in the regular list module in the TYPO3 backend.
It's not critical if hooks and further processors use intval() on the
argument, but is bad if methods expect the defined integer value.

Change-Id: Ib66c1ee219b67e51d534f11fbf1eaa330476ca93
Fixes: #50912
Releases: 4.5, 6.0, 6.1, 6.2
Reviewed-on: https://review.typo3.org/22951
Reviewed-by: Sascha Egerer
Tested-by: Sascha Egerer
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php