Skip to content
Snippets Groups Projects
Commit 591fb2fa authored by Peter Rotich's avatar Peter Rotich
Browse files

Make captcha text case-insensitive

parent 0dad5c45
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