diff options
author | Matthias Loibl <mail@matthiasloibl.com> | 2016-11-08 18:28:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-08 18:27:59 +0100 |
commit | 45c4539c6168aa248e425033731ab7a9a21c5958 (patch) | |
tree | 7235c6a9dc9d75a092d7d03a28d6ad790e47136b /modules | |
parent | f6d53ecbc1a1f1475d2ed6753176db43278dfd7f (diff) | |
parent | 01c5233b53d931996844716dfe80511fd1f9abb5 (diff) | |
download | gitea-45c4539c6168aa248e425033731ab7a9a21c5958.tar.gz gitea-45c4539c6168aa248e425033731ab7a9a21c5958.zip |
Merge pull request #17 from LefsFlarey/issue/3666
Fixed 404 caused by unexpected question mark
Diffstat (limited to 'modules')
-rw-r--r-- | modules/template/template.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/template/template.go b/modules/template/template.go index 3fe49fa380..000ad86770 100644 --- a/modules/template/template.go +++ b/modules/template/template.go @@ -97,7 +97,7 @@ func NewFuncMap() []template.FuncMap { "MD5": base.EncodeMD5, "ActionContent2Commits": ActionContent2Commits, "EscapePound": func(str string) string { - return strings.NewReplacer("%", "%25", "#", "%23", " ", "%20").Replace(str) + return strings.NewReplacer("%", "%25", "#", "%23", " ", "%20", "?", "%3F").Replace(str) }, "RenderCommitMessage": RenderCommitMessage, "ThemeColorMetaTag": func() string { |