Commit 43c17b27 authored by Simone Piccardi's avatar Simone Piccardi
Browse files

Readding '-' in the allowed chars in group names

parent 059fb9c6
To build a new package:
* Bump the version *both* in debian/changelog *and* setup.py
* Follow the instructions in the documentation here: https://fuss-dev-guide.readthedocs.io/it/latest/pacchetti-e-repository.html
* Follow the instructions in the documentation here:
https://fuss-dev-guide.readthedocs.io/it/latest/pacchetti-e-repository.html
using ``debian/rules debsrc`` to create the source tarball.
octonet (10.0.3-1) unstable; urgency=medium
* Readding '-' to allowed chars in group names
-- Simone Piccardi <piccardi@truelite.it> Tue, 25 Aug 2020 10:39:20 +0200
octonet (10.0.2-1) testing; urgency=medium
* Changed the interface for the SAMBA share create and edit pages.
......
......@@ -13,7 +13,7 @@ def list_locale_files():
setup(
name='octonet',
description='OctoNet',
version='10.0.2',
version='10.0.3',
license='GPL3',
author='Truelite S.r.l.',
author_email='info@truelite.it',
......
......@@ -847,9 +847,10 @@ class GroupCreateForm(FormControlClassMixin, forms.Form):
value = self.cleaned_data['name']
# EXPLICIT regex to avoid problems with a-z and different locales
# https://unicode.org/reports/tr18/tr18-5.1.html#Locale%20Dependent%20Ranges
regex = re.compile(r'^[qwertyuiopasdfghjklzxcvbnm0-9]+$')
# Added "-" to acceptes char for group names: refs #15001
regex = re.compile(r'^[qwertyuiopasdfghjklzxcvbnm0-9-]+$')
if not regex.match(value):
raise forms.ValidationError(_("The group name can contain only lowercase letters and numbers"))
raise forms.ValidationError(_("The group name can contain only lowercase letters and numbers and hyphen"))
return value
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment