| branch | devel |
| changeset 137 | e0073c462563 |
| parent 136 | ca926774e16c |
| child 167 | 374f34025fa1 |
--- a/iro/validate.py Wed Feb 08 14:19:09 2012 +0100 +++ b/iro/validate.py Wed Feb 08 14:19:46 2012 +0100 @@ -47,7 +47,7 @@ raise ValidateException(field=field) if maxlength and len(value)>maxlength: raise ValidateException(field=field) - return value + return value.lower() def vTel(value,field): '''Validator for Telefonnumbers''' @@ -87,6 +87,7 @@ if local == "": ret.append(v) continue + if local.startswith(".") or local.endswith("."): raise InvalidMail(v,field) unquote = True