Changeset 2547

Show
Ignore:
Timestamp:
04/21/2008 10:16:17 AM (7 months ago)
Author:
Geert
Message:

Made valid_captcha check case insensitive

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Captcha.php

    r2535 r2547  
    129129        public static function valid_captcha($str) 
    130130        { 
    131                 return ((string) $str === Session::instance()->get('captcha_code')); 
     131                return (strtoupper($str) === strtoupper(Session::instance()->get('captcha_code'))); 
    132132        } 
    133133