includes/pageutils.php
changeset 402 d907601ccad2
parent 401 6ae6e387a0e3
child 408 7ecbe721217c
--- a/includes/pageutils.php	Wed Feb 06 18:41:47 2008 -0500
+++ b/includes/pageutils.php	Wed Feb 06 19:27:43 2008 -0500
@@ -699,7 +699,7 @@
     {
       if(!$captcha_code || !$captcha_id) _die('BUG: PageUtils::addcomment: no CAPTCHA data passed to method');
       $result = $session->get_captcha($captcha_id);
-      if($captcha_code != $result) _die('The confirmation code you entered was incorrect.');
+      if(strtolower($captcha_code) != strtolower($result)) _die('The confirmation code you entered was incorrect.');
     }
     $text = RenderMan::preprocess_text($text);
     $name = $session->user_logged_in ? RenderMan::preprocess_text($session->username) : RenderMan::preprocess_text($name);