From c81e81869cf485d0408feda9997fa3a30dde9f00 Mon Sep 17 00:00:00 2001 From: Manuel Herrmann <it@icetruck.de> Date: Thu, 25 Sep 2014 22:12:20 +0200 Subject: [PATCH] captcha improvement / no case sensitivity --- registration-system/index.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/registration-system/index.php b/registration-system/index.php index bfc8493..5ea66c1 100644 --- a/registration-system/index.php +++ b/registration-system/index.php @@ -173,10 +173,8 @@ function index_check_field($index, $check, &$datarr, &$errarr, $errmess){ comm_verbose(3,"checking ".$index); if($index == "captcha"){ - if(isset($_SESSION['captcha']) && isset($_REQUEST[$index]) && $_REQUEST[$index] == $_SESSION['captcha']) - { + if(isset($_SESSION['captcha']) && isset($_REQUEST[$index]) && strtolower($_REQUEST[$index]) == strtolower($_SESSION['captcha'])) unset($_SESSION['captcha']); - } else { array_push($errarr, $errmess); -- GitLab