From 95da01c5cd946d6e6ba0b0110676d3df36ce85db Mon Sep 17 00:00:00 2001 From: zeripath Date: Tue, 2 Nov 2021 15:00:30 +0000 Subject: [PATCH] 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 --- modules/templates/helper.go | 1 + 1 file changed, 1 insertion(+) 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, }} }