aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromin <romin@shitposter.club>2023-09-22 12:02:35 +0200
committerr <r@freesoftwareextremist.com>2023-09-22 15:56:26 +0000
commitcba88f94a24ad8b0c04d8fcbf2500d45156ce20f (patch)
tree4d228ff6753ff6f55ebc35e4c46e8beae09e84f6
parente50f12b6158ffae6b0b59f2902798ae86d263b5d (diff)
downloadbloat-cba88f94a24ad8b0c04d8fcbf2500d45156ce20f.tar.gz
bloat-cba88f94a24ad8b0c04d8fcbf2500d45156ce20f.zip
Sanitize user field name
-rw-r--r--templates/user.tmpl2
1 files changed, 1 insertions, 1 deletions
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}}
<div class="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}}
</div>
{{end}}