diff options
author | Flare <flare@lefs.me> | 2016-09-18 23:46:52 +0800 |
---|---|---|
committer | Flare <flare@lefs.me> | 2016-11-08 22:09:48 +0800 |
commit | 01c5233b53d931996844716dfe80511fd1f9abb5 (patch) | |
tree | e097e6d6957ec741da3654db8e6f261f26c1378a /modules | |
parent | 7e15ff9486cde36b76f3d39b7db23f89278acb7d (diff) | |
download | gitea-01c5233b53d931996844716dfe80511fd1f9abb5.tar.gz gitea-01c5233b53d931996844716dfe80511fd1f9abb5.zip |
Fixed 404 caused by unexpected question mark
This fixes 404 caused when creating new files or wiki pages with question marks. Amended to force CI rebuild
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 3a6eb042bb..f005d5ce17 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 { |