Skip to content
Snippets Groups Projects
Commit a907b5f0 authored by Jared Hancock's avatar Jared Hancock
Browse files

Merge pull request #823 from protich/issue/captcha-case


Make captcha text case-insensitive

Reviewed-By: default avatarJared Hancock <jared@osticket.com>
parents 0dad5c45 591fb2fa
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ if($_POST):
} elseif($cfg->isCaptchaEnabled()) {
if(!$_POST['captcha'])
$errors['captcha']='Enter text shown on the image';
elseif(strcmp($_SESSION['captcha'],md5($_POST['captcha'])))
elseif(strcmp($_SESSION['captcha'], md5(strtoupper($_POST['captcha']))))
$errors['captcha']='Invalid - try again!';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment