includes/comment.php
changeset 402 d907601ccad2
parent 387 92664d2efab8
child 411 d1a95497b68f
equal deleted inserted replaced
401:6ae6e387a0e3 402:d907601ccad2
   260         
   260         
   261         // CAPTCHA code
   261         // CAPTCHA code
   262         if ( getConfig('comments_need_login') == '1' && !$session->user_logged_in )
   262         if ( getConfig('comments_need_login') == '1' && !$session->user_logged_in )
   263         {
   263         {
   264           $real_code = $session->get_captcha($data['captcha_id']);
   264           $real_code = $session->get_captcha($data['captcha_id']);
   265           if ( $real_code != $data['captcha_code'] )
   265           if ( strtolower($real_code) != strtolower($data['captcha_code']) )
   266             $errors[] = 'The confirmation code you entered was incorrect.';
   266             $errors[] = 'The confirmation code you entered was incorrect.';
   267           $session->kill_captcha();
   267           $session->kill_captcha();
   268         }
   268         }
   269         
   269         
   270         if ( count($errors) > 0 )
   270         if ( count($errors) > 0 )