diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-03-16 01:22:27 +0800 |
---|---|---|
committer | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-03-16 01:22:27 +0800 |
commit | 9e9ca66467116e9079a2639c00e9e623aca23015 (patch) | |
tree | dacdef5392608ff7107e4dd498959d4899e13e54 /internal/template/template.go | |
parent | 82ff0c5852f29daa5f95d965fd50665581e7ea3c (diff) |
refactor: unify error handling in routing layer
Diffstat (limited to 'internal/template/template.go')
-rw-r--r-- | internal/template/template.go | 1 |
1 files changed, 1 insertions, 0 deletions
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) } |