Skip to content

Commit

Permalink
Add QueryEscape to general funcmap (go-gitea#17526)
Browse files Browse the repository at this point in the history
QueryEscape was only added to the text funcmap. Add this to the main template funcmap
too.

Signed-off-by: Andrew Thornton <[email protected]>
  • Loading branch information
zeripath authored Nov 2, 2021
1 parent e69521f commit 95da01c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/templates/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ func NewFuncMap() []template.FuncMap {
"MermaidMaxSourceCharacters": func() int {
return setting.MermaidMaxSourceCharacters
},
"QueryEscape": url.QueryEscape,
}}
}

Expand Down

0 comments on commit 95da01c

Please sign in to comment.