From 759ea2b4e6c05808f94e5121dfd44c4c419bc323 Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Sun, 20 Jan 2013 14:04:41 -0800 Subject: [PATCH] validate format of blog and gallery fields Change-Id: I757d17e746a76fac0006edc0272b2f665dd730f8 --- pkg/server/wizard.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/server/wizard.go b/pkg/server/wizard.go index 19ec811f3..b761fdc0d 100644 --- a/pkg/server/wizard.go +++ b/pkg/server/wizard.go @@ -207,8 +207,8 @@ func handleSetupChange(rw http.ResponseWriter, req *http.Request) { if len(v[0]) > 0 { pub := strings.Split(v[0], ",") if len(pub) < 2 || len(pub) > 3 { - // no need to fail loudly for now as we'll probably change this format - continue + httputil.ServerError(rw, req, fmt.Errorf("%s must be of the format ROOT,TEMPLATE,STYLESHEET", k)) + return } handler := jsonconfig.Obj{} handler["template"] = k