From f586c77c2bb2684c6ac5150894bcbb79ee1c35c3 Mon Sep 17 00:00:00 2001 From: Eric Price Date: Mon, 23 Jun 2008 21:13:53 -0400 Subject: [PATCH] Only allow lowercase machine names svn path=/trunk/packages/sipb-xen-www/; revision=647 --- code/validation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/code/validation.py b/code/validation.py index d291d61..9b703ad 100644 --- a/code/validation.py +++ b/code/validation.py @@ -264,6 +264,7 @@ def testDisk(user, disksize, machine=None): def testName(user, name, machine=None): if name is None: return None + name = name.lower() if machine is not None and name == machine.name: return None if not Machine.select_by(name=name): -- 1.7.9.5