From 2e270ab2393e21798dc43d99b0078a92c17a5196 Mon Sep 17 00:00:00 2001 From: Mitchell E Berger Date: Sun, 13 Nov 2011 21:22:55 -0500 Subject: [PATCH] Fix strict validation of description field --- code/validation.py | 2 +- debian/changelog | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/code/validation.py b/code/validation.py index 29cb310..5018ca3 100755 --- a/code/validation.py +++ b/code/validation.py @@ -25,7 +25,7 @@ class Validate: if strict: if name is None: raise InvalidInput('name', name, "You must provide a machine name.") - if description is None: + if description is None or description.strip() == '': raise InvalidInput('description', description, "You must provide a description.") if memory is None: raise InvalidInput('memory', memory, "You must provide a memory size.") diff --git a/debian/changelog b/debian/changelog index 68fcf66..fbcd172 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +invirt-web (0.1.21) unstable; urgency=low + + * Fix strict validation of description field + + -- Mitchell Berger Sun, 13 Nov 2011 21:23:00 -0500 + invirt-web (0.1.20) unstable; urgency=low * Tell users to contact us at our support address, not our -- 1.7.9.5