From 2822ebc35ac8fda1bc880ccf5b3cb40fe5c96846 Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Tue, 2 Nov 2021 14:40:03 +0000 Subject: [PATCH] Add QueryEscape to general funcmap 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 61d926ee8af62..991816c10332d 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, }} }