Skip to content

Commit

Permalink
feat(form): case insensitive captcha
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Dec 30, 2020
1 parent 9576f2b commit b463d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/common.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ public static function checkCaptcha($captchaId, $challenge, $expiration = 600) {
return false;
}

$result = $_SESSION['plugin_formcreator']['captcha'][$captchaId]['phrase'] == (string) $challenge;
$result = strtolower($_SESSION['plugin_formcreator']['captcha'][$captchaId]['phrase']) == strtolower((string) $challenge);
unset($_SESSION['plugin_formcreator']['captcha'][$captchaId]);

return $result;
Expand Down

0 comments on commit b463d3a

Please sign in to comment.