From 2a4037d39cb39f37aca45196387d88d7b7f5ac06 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Thu, 9 May 2013 21:10:17 +0200 Subject: [PATCH] =?UTF-8?q?[attributs]=20Expression=20r=C3=A9guli=C3=A8re?= =?UTF-8?q?=20pour=20ne=20pas=20accepter=20sur=20un=20sous=20mot=20d'un=20?= =?UTF-8?q?nom=20de=20machine?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- attributs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attributs.py b/attributs.py index 7c47e11..c3e9b41 100644 --- a/attributs.py +++ b/attributs.py @@ -509,7 +509,7 @@ class dnsAttr(Attr): def parse_value(self, val): val = val.lower() name, _ = val.split('.', 1) - if not re.match('[a-z](-*[a-z0-9]+)*', name): + if not re.match('^[a-z](-*[a-z0-9]+)*$', name): raise ValueError("Nom d'hote invalide %r" % val) self.value = val