Author: giecrilj
Description:
It is hard to tell hyphen-minus from multiplication dot.
I would recommend using − instead for presentation.
function SimpleCaptcha.getCaptcha() { $a = mt_rand(0, 100); $b = mt_rand(0, 10); $op = mt_rand(0, 1) ? '+' : '−'; $test = "$a $op $b"; $answer = ($op == '+') ? ($a + $b) : ($a - $b); return array('question' => $test, 'answer' => $answer); }
Alternatively, the equation should be typeset in a monospaced font style.
Version: unspecified
Severity: enhancement
URL: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/ConfirmEdit/ConfirmEdit_body.php?view=markup