Sanitize user field name

This commit is contained in:
romin 2023-09-22 12:02:35 +02:00 committed by r
parent e50f12b615
commit cba88f94a2

View file

@ -124,7 +124,7 @@
{{if .User.Fields}} {{if .User.Fields}}
<div class="user-fields"> <div class="user-fields">
{{range .User.Fields}} {{range .User.Fields}}
<div>{{- EmojiFilter .Name $.Data.User.Emojis | Raw}} - {{EmojiFilter .Value $.Data.User.Emojis | Raw -}}</div> <div>{{- EmojiFilter (HTML .Name) $.Data.User.Emojis | Raw}} - {{EmojiFilter .Value $.Data.User.Emojis | Raw -}}</div>
{{end}} {{end}}
</div> </div>
{{end}} {{end}}