includes/pageutils.php
changeset 283 e133d321fce4
parent 261 5f1cd51bf1be
child 285 e72bf2c24875
--- a/includes/pageutils.php	Thu Jan 31 22:28:40 2008 -0500
+++ b/includes/pageutils.php	Fri Feb 01 22:31:57 2008 -0500
@@ -895,7 +895,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);