[TYPO3-core] RFC: Flexform ranges

Michael Stucki michael at typo3.org
Mon Mar 6 18:33:02 CET 2006


Looks obvious, +1

Michael

Bernhard Kraft wrote:
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060306/356b7032/attachment.pgp 


More information about the TYPO3-team-core mailing list