Add strtolower to allow answers with Capital letter

This commit is contained in:
RuthAdele 2013-09-24 18:51:31 +09:30
parent e571210f12
commit db7ec20399

View File

@ -107,7 +107,7 @@ class MathSpamProtectorField extends SpamProtectorField {
Session::clear('mathQuestionV1');
Session::clear('mathQuestionV2');
return (MathSpamProtectorField::digit_to_word($v1 + $v2) == $answer || ($v1 + $v2) == $answer);
return (MathSpamProtectorField::digit_to_word($v1 + $v2) == strtolower($answer) || ($v1 + $v2) == $answer);
}
/**