From e5e62aabd145b3ad8ace704423419dd3c727ee45 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 11 Apr 2013 17:12:19 +0200 Subject: More tolerent name checking (closes #560) --- ishtar_common/forms.py | 2 +- ishtar_common/forms_common.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py index cb007442e..4477213c9 100644 --- a/ishtar_common/forms.py +++ b/ishtar_common/forms.py @@ -59,7 +59,7 @@ import widgets reverse_lazy = lazy(reverse, unicode) -regexp_name = re.compile(r'^[\w\- ]+$', re.UNICODE) +regexp_name = re.compile(r"^[,:/\w\-'\"() \&\[\]@]+$", re.UNICODE) name_validator = validators.RegexValidator(regexp_name, _(u"Enter a valid name consisting of letters, spaces and hyphens."), 'invalid') diff --git a/ishtar_common/forms_common.py b/ishtar_common/forms_common.py index 52fcfc97a..5078ffaae 100644 --- a/ishtar_common/forms_common.py +++ b/ishtar_common/forms_common.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Copyright (C) 2010-2011 Étienne Loks +# Copyright (C) 2010-2013 Étienne Loks # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as -- cgit v1.2.3