landseer/Formicula — Issue #29: Not filled in captcha validates with e.g. 6 - 6
Author: espaan
Created: 2011-11-25 17:35:02+00:00
State: open

When the captcha is X - X then the result is 0, but the validation now gives an ok when hte captcha is not filled in at all.
Function send uses
$captcha = (int)FormUtil::getPassedValue('captcha', (isset($args['captcha'])) ? $args['captcha'] : 0, 'GETPOST');
However this goes to integer 0 when not present, and then X-X is validated :-)

So -1 should be default of null or?