From 4d961f80509c9279d563674132dd51dbb040f3e3 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 18 2019 08:46:23 +0000 Subject: Do not allow `,` in tags This break the UI when adding tags to a ticket or a PR, there are split as if they were two tags while they are one in fact. Fixes https://pagure.io/pagure/issue/4212 Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/forms.py b/pagure/forms.py index fcc6ac1..52d8395 100644 --- a/pagure/forms.py +++ b/pagure/forms.py @@ -34,7 +34,7 @@ from pagure.config import config as pagure_config from pagure.utils import urlpattern, is_admin STRICT_REGEX = "^[a-zA-Z0-9-_]+$" -TAGS_REGEX = "^[a-zA-Z0-9-_, .:]+$" +TAGS_REGEX = "^[a-zA-Z0-9-_ .:]+$" FALSE_VALUES = ("false", "", False, "False", 0, "0") WTF_VERSION = tuple()