From cba88f94a24ad8b0c04d8fcbf2500d45156ce20f Mon Sep 17 00:00:00 2001 From: romin Date: Fri, 22 Sep 2023 12:02:35 +0200 Subject: [PATCH] Sanitize user field name --- templates/user.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/user.tmpl b/templates/user.tmpl index 3adc1a0..3b1a5cd 100644 --- a/templates/user.tmpl +++ b/templates/user.tmpl @@ -124,7 +124,7 @@ {{if .User.Fields}}
{{range .User.Fields}} -
{{- EmojiFilter .Name $.Data.User.Emojis | Raw}} - {{EmojiFilter .Value $.Data.User.Emojis | Raw -}}
+
{{- EmojiFilter (HTML .Name) $.Data.User.Emojis | Raw}} - {{EmojiFilter .Value $.Data.User.Emojis | Raw -}}
{{end}}
{{end}}