From 24cfc1511d160850a6fc5c93be067c6704892440 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Mon, 5 Dec 2016 12:09:37 -0800 Subject: changing Add -> Set for values where it could have been problematic --- system/admin/handlers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/admin') diff --git a/system/admin/handlers.go b/system/admin/handlers.go index 699e503..6293974 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -871,7 +871,7 @@ func postsHandler(res http.ResponseWriter, req *http.Request) { ` if hasExt { if status == "" { - q.Add("status", "public") + q.Set("status", "public") } // always start from top of results when changing public/pending @@ -1355,7 +1355,7 @@ func editHandler(res http.ResponseWriter, req *http.Request) { } for name, urlPath := range urlPaths { - req.PostForm.Add(name, urlPath) + req.PostForm.Set(name, urlPath) } // check for any multi-value fields (ex. checkbox fields) -- cgit v1.2.3