[TYPO3-core] RFC: #10861: Eval of double2 doesn't work
Steffen Kamper
info at sk-typo3.de
Wed Apr 22 19:49:55 CEST 2009
Hi,
after a conspirative session with Bernhard :-) we found the check is not
enough. Wrong entry ends up in NaN which should not happen at any time.
So i rewrote both methods of eval and tested with any possible input
(also nonsense), result is attached version 2.
Maybe it looks complicate, and indeed it is: Removing not valid chars,
checking for negative, splitting a.s.o. But this way each entry is
eval'ed to a double and not to 0.00 if illegal chars are found.
vg Steffen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 10861_v2.diff
Type: text/x-diff
Size: 2197 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090422/7e6bed6c/attachment.diff
More information about the TYPO3-team-core
mailing list