From b8b01c2db47eaa69327717fa95e55ca1f3b1512e Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Fri, 16 Jan 2015 22:11:36 -0800 Subject: [PATCH] partial fix for issue #812 --- server/handler/repo.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/handler/repo.go b/server/handler/repo.go index 4f753c84..fc989e97 100644 --- a/server/handler/repo.go +++ b/server/handler/repo.go @@ -149,6 +149,10 @@ func PutRepo(c web.C, w http.ResponseWriter, r *http.Request) { if in.Params != nil { repo.Params = *in.Params + if _, err := repo.ParamMap(); err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + return + } } if in.PostCommit != nil { repo.PostCommit = *in.PostCommit