Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make HC answers not case-sensitive

  • Loading branch information...
commit 6a07ac674759720b79deecaeacee45ca7bc8a045 1 parent 364ad5e
Jamie McCarthy jamiemccarthy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  plugins/HumanConf/HumanConf.pm
2  plugins/HumanConf/HumanConf.pm
View
@@ -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';
}
Please sign in to comment.
Something went wrong with that request. Please try again.