diff options
author | Vladimir Vissoultchev <wqweto@gmail.com> | 2015-07-28 11:42:06 +0300 |
---|---|---|
committer | Vladimir Vissoultchev <wqweto@gmail.com> | 2015-07-28 11:42:06 +0300 |
commit | 167265d533db2b7da1ea9e1a0f098d6e0d255183 (patch) | |
tree | edf78da63bf352a6002f3e6f4c8592636a2aa9e1 /modules/base | |
parent | 53bcf373c1d076dd14db6aff0247ae9dbdc49c77 (diff) | |
download | gitea-167265d533db2b7da1ea9e1a0f098d6e0d255183.tar.gz gitea-167265d533db2b7da1ea9e1a0f098d6e0d255183.zip |
Allow file and directory names to contain percent character
Diffstat (limited to 'modules/base')
-rw-r--r-- | modules/base/template.go | 2 |
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, } |