From c286beac9f8ca7bd142d5ee1b4c25d6692dfa651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Wed, 8 Jul 2020 19:27:09 +0200 Subject: [PATCH] Removed _ from hostnames (no valid) --- server/src/uds/core/util/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/uds/core/util/tools.py b/server/src/uds/core/util/tools.py index fde981b1..2d464891 100644 --- a/server/src/uds/core/util/tools.py +++ b/server/src/uds/core/util/tools.py @@ -156,7 +156,7 @@ def checkValidBasename(baseName: str, length: int = -1) -> None: Returns: None -- [description] """ - if re.match(r'^[a-zA-Z0-9_-]+$', baseName) is None: + if re.match(r'^[a-zA-Z0-9-]+$', baseName) is None: raise services.Service.ValidationException(ugettext('The basename is not a valid for a hostname')) if length == 0: