includes/comment.php
changeset 283 e133d321fce4
parent 261 5f1cd51bf1be
child 285 e72bf2c24875
equal deleted inserted replaced
282:43b908c9b2e2 283:e133d321fce4
   266         
   266         
   267         // CAPTCHA code
   267         // CAPTCHA code
   268         if ( getConfig('comments_need_login') == '1' && !$session->user_logged_in )
   268         if ( getConfig('comments_need_login') == '1' && !$session->user_logged_in )
   269         {
   269         {
   270           $real_code = $session->get_captcha($data['captcha_id']);
   270           $real_code = $session->get_captcha($data['captcha_id']);
   271           if ( $real_code != $data['captcha_code'] )
   271           if ( strtolower($real_code) != strtolower($data['captcha_code']) )
   272             $errors[] = 'The confirmation code you entered was incorrect.';
   272             $errors[] = 'The confirmation code you entered was incorrect.';
   273           $session->kill_captcha();
   273           $session->kill_captcha();
   274         }
   274         }
   275         
   275         
   276         if ( count($errors) > 0 )
   276         if ( count($errors) > 0 )