From 4151739b9f65e8ea5f3cb385432a92d9293e0aef Mon Sep 17 00:00:00 2001 From: Noah Hall Date: Tue, 19 Oct 2021 10:01:19 -0400 Subject: [PATCH] strip any leading hash symbols from admin tag input using strings.TrimLeft --- controllers/admin/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/config.go b/controllers/admin/config.go index 67903008d..55aa07554 100644 --- a/controllers/admin/config.go +++ b/controllers/admin/config.go @@ -38,7 +38,7 @@ func SetTags(w http.ResponseWriter, r *http.Request) { tagStrings := make([]string, 0) for _, tag := range configValues { - tagStrings = append(tagStrings, tag.Value.(string)) + tagStrings = append(tagStrings, strings.TrimLeft(tag.Value.(string), "#")) } if err := data.SetServerMetadataTags(tagStrings); err != nil {