Permalink
Browse files

Make HC answers not case-sensitive

  • Loading branch information...
1 parent 364ad5e commit 6a07ac674759720b79deecaeacee45ca7bc8a045 @jamiemccarthy jamiemccarthy committed May 29, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/HumanConf/HumanConf.pm
@@ -191,7 +191,7 @@ sub validFormkeyHC {
# wasted by previous incorrect answers.
return 'invalidhc';
}
- if ($form->{hcanswer} && $form->{hcanswer} eq $answer) {
+ if ($form->{hcanswer} && lc($form->{hcanswer}) eq lc($answer)) {
# Correct answer submitted.
return 'ok';
}

0 comments on commit 6a07ac6

Please sign in to comment.