summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/base/template.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/base/template.go b/modules/base/template.go
index bc69bb3b37..f0a2e0329c 100644
--- a/modules/base/template.go
+++ b/modules/base/template.go
@@ -178,7 +178,7 @@ var TemplateFuncs template.FuncMap = map[string]interface{}{
"Oauth2Name": Oauth2Name,
"ToUtf8": ToUtf8,
"EscapePound": func(str string) string {
- return strings.Replace(str, "#", "%23", -1)
+ return strings.Replace(strings.Replace(str, "%", "%25", -1), "#", "%23", -1)
},
"RenderCommitMessage": RenderCommitMessage,
}