From c86a4467d3208f7dae65d3916d3f57bbcb63d27f Mon Sep 17 00:00:00 2001 From: mdipierro Date: Wed, 5 Dec 2012 15:24:15 -0600 Subject: [PATCH] fixed IS_STRONG **** issue, issue 1098 --- VERSION | 2 +- gluon/validators.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index ce1f4466..e7cb7b0b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.3.0 (2012-12-05 14:17:12) rc1 +Version 2.3.0 (2012-12-05 15:23:32) rc1 diff --git a/gluon/validators.py b/gluon/validators.py index 37cbc781..9ab4c99d 100644 --- a/gluon/validators.py +++ b/gluon/validators.py @@ -2858,6 +2858,8 @@ class IS_STRONG(object): def __call__(self, value): failures = [] + if value and len(value) == value.count('*') > 4: + return (value, None) if self.entropy is not None: entropy = calc_entropy(value) if entropy < self.entropy: