From 167265d533db2b7da1ea9e1a0f098d6e0d255183 Mon Sep 17 00:00:00 2001 From: Vladimir Vissoultchev Date: Tue, 28 Jul 2015 11:42:06 +0300 Subject: Allow file and directory names to contain percent character --- modules/base/template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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, } -- cgit v1.2.3