From bfd012ffe077048d4f4d318069524362061b1698 Mon Sep 17 00:00:00 2001 From: Gregwar Date: Wed, 14 Dec 2011 10:18:38 +0100 Subject: [PATCH] [Validator] Adding strtolower() to ignore case (fixes #12) --- Validator/CaptchaValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Validator/CaptchaValidator.php b/Validator/CaptchaValidator.php index b0998e1..9ec42ea 100644 --- a/Validator/CaptchaValidator.php +++ b/Validator/CaptchaValidator.php @@ -63,6 +63,6 @@ class CaptchaValidator implements FormValidatorInterface */ private function niceize($code) { - return strtr($code, 'oil', '01l'); + return strtr(strtolower($code), 'oil', '01l'); } }