mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-10-31 10:39:59 +08:00 
			
		
		
		
	Fix #18904: Improve Captcha client-side validation
This commit is contained in:
		| @ -261,7 +261,7 @@ yii.validation = (function ($) { | ||||
|             hash = hash == null ? options.hash : hash[options.caseSensitive ? 0 : 1]; | ||||
|             var v = options.caseSensitive ? value : value.toLowerCase(); | ||||
|             for (var i = v.length - 1, h = 0; i >= 0; --i) { | ||||
|                 h += v.charCodeAt(i); | ||||
|                 h += v.charCodeAt(i) << i; | ||||
|             } | ||||
|             if (h != hash) { | ||||
|                 pub.addMessage(messages, options.message, value); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 hexkir
					hexkir