diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-11 17:12:19 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-11 17:12:19 +0200 |
commit | af94590c1865a9e293872b8275f8c3e2ad163189 (patch) | |
tree | d2b86c6fdefc2bce5dfa3641a0fe4ef8c852a00f /ishtar_common | |
parent | 8302cf66364af91bb147ddd9148475cf35800d0c (diff) | |
download | Ishtar-af94590c1865a9e293872b8275f8c3e2ad163189.tar.bz2 Ishtar-af94590c1865a9e293872b8275f8c3e2ad163189.zip |
More tolerent name checking (closes #560)
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/forms.py | 2 | ||||
-rw-r--r-- | 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 <etienne.loks_AT_peacefrogsDOTnet> +# Copyright (C) 2010-2013 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet> # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as |