From 9e9ca66467116e9079a2639c00e9e623aca23015 Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Mon, 16 Mar 2020 01:22:27 +0800 Subject: refactor: unify error handling in routing layer --- internal/template/template.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/template/template.go') diff --git a/internal/template/template.go b/internal/template/template.go index d34e44f6..faf27495 100644 --- a/internal/template/template.go +++ b/internal/template/template.go @@ -256,6 +256,7 @@ func ActionContent2Commits(act Actioner) *db.PushCommits { return push } +// TODO(unknwon): Use url.Escape. func EscapePound(str string) string { return strings.NewReplacer("%", "%25", "#", "%23", " ", "%20", "?", "%3F").Replace(str) } -- cgit v1.2.3