[TYPO3-core] RFC: 15211: listQuery does not handle passed in int values correctly

Bjoern Pedersen bjoern.pedersen at frm2.tum.de
Fri Jul 23 10:48:33 CEST 2010


Bug tracker reference: http://bugs.typo3.org/view.php?id=15211

the page group access check calls t3lib_db with an int array (obtained
by t3lib_div::intExplode).

if the group number matches ord(',') strpos(',', value) returns a match
causing an ValueErrorException.

Solution: check  that $value is a string, otherwise convert it with strval.


Note: The  bugtracker contains two tests showing the strange strpos
behaviour.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t3lib_db_listQuery.diff
Type: text/x-patch
Size: 524 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100723/592efdf6/attachment.bin>


More information about the TYPO3-team-core mailing list