mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-22 01:34:18 +00:00
Allow file and directory names to contain percent character
This commit is contained in:
parent
53bcf373c1
commit
167265d533
3 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue