diff options
author | zeripath <art27@cantab.net> | 2021-11-02 15:00:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-02 23:00:30 +0800 |
commit | 95da01c5cd946d6e6ba0b0110676d3df36ce85db (patch) | |
tree | dbee821f299120ff688197300dffe3d183b0a4d1 /modules | |
parent | e69521f0292a4e4c170d924d6c5708494ccd1b67 (diff) | |
download | gitea-95da01c5cd946d6e6ba0b0110676d3df36ce85db.tar.gz gitea-95da01c5cd946d6e6ba0b0110676d3df36ce85db.zip |
Add QueryEscape to general funcmap (#17526)
QueryEscape was only added to the text funcmap. Add this to the main template funcmap
too.
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/templates/helper.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 61d926ee8a..991816c103 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -379,6 +379,7 @@ func NewFuncMap() []template.FuncMap { "MermaidMaxSourceCharacters": func() int { return setting.MermaidMaxSourceCharacters }, + "QueryEscape": url.QueryEscape, }} } |