[TYPO3-core] RFC: Flexform ranges

Bernhard Kraft kraftb at kraftb.at
Mon Mar 6 18:27:37 CET 2006


Hello !

This is a CVS patch request.


BT reference:
http://bugs.typo3.org/view.php?id=2776


Descripton:
The range: upper/lower evaluation in Flexforms is done with the same code as for normal tables. Normally an integer field would be of type integer in the table and thus the passed value to t3lib_tcemain.php method "checkValue_input" would be an integer.

But if flexforms are used the passed value is of type string and also the compare value from the DS is a string.

Now it is the case that the following script:
<?php
echo ('200000000'<'-200000000')?1:0;
?>

return 1 unexpectetly on 32-bit machines.

To prevent this from not working upper/lower bounds I added intval() calls to all four uses of $value and upper/lower.


Branch:
4-0


Files:
flexform_range_patch_2006-03-06.diff



greets,
Bernhard
-- 
----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
----------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flexform_range_patch_2006-03-06.diff
Type: text/x-patch
Size: 981 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060306/7c4f4ebd/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060306/7c4f4ebd/attachment.pgp 


More information about the TYPO3-team-core mailing list