From 7bc7bfe01d2dbf835130cbe579d15c0f5b647c55 Mon Sep 17 00:00:00 2001 From: tof <> Date: Mon, 13 Oct 2008 15:29:01 +0000 Subject: Fixed #845 --- HISTORY | 1 + framework/Web/Javascripts/source/prado/validator/validation3.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/HISTORY b/HISTORY index a857d097..0e5c3adb 100644 --- a/HISTORY +++ b/HISTORY @@ -5,6 +5,7 @@ BUG: Ticket#836 - TRatingList downgrade (Christophe) BUG: Ticket#841 - Strange output from THttpResponse (Christophe) BUG: Ticket#847 - getBaseUrl sometimes fails (Christophe) BUG: Ticket#843 - TDataList alternatinItem issue after changes in rev 2227 (Christophe) +BUG: Ticket#845 - TCaptchaValidator with TCaptcha.CaseSensitive=false JS Error (Christophe) BUG: Ticket#849 - TDatePicker selecting current date problem (Christophe) BUG: Ticket#851 - TPropertyAccess doesn't get properties right if an object has a __call() method (Simon Lehmann, Knut) BUG: Ticket#855 - TActiveRecord: Make db-connection serializable in __sleep() function (Knut) diff --git a/framework/Web/Javascripts/source/prado/validator/validation3.js b/framework/Web/Javascripts/source/prado/validator/validation3.js index c9dba7a1..dc7798bb 100644 --- a/framework/Web/Javascripts/source/prado/validator/validation3.js +++ b/framework/Web/Javascripts/source/prado/validator/validation3.js @@ -1847,6 +1847,8 @@ Prado.WebUI.TCaptchaValidator = Class.extend(Prado.WebUI.TBaseValidator, { var a = this.getValidationValue(); var h = 0; + if (this.options.CaseSensitive==false) + a = a.toUpperCase(); for(var i = a.length-1; i >= 0; --i) h += a.charCodeAt(i); return h == this.options.TokenHash; -- cgit v1.2.3