From b2a9e44db1a703fe0150c5aef7097020a9e1550d Mon Sep 17 00:00:00 2001 From: r Date: Tue, 16 Nov 2021 15:29:27 +0000 Subject: [PATCH] Escape user display name --- templates/nav.tmpl | 2 +- templates/notification.tmpl | 4 ++-- templates/requestlist.tmpl | 2 +- templates/status.tmpl | 4 ++-- templates/user.tmpl | 2 +- templates/userlist.tmpl | 2 +- templates/usersearch.tmpl | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/templates/nav.tmpl b/templates/nav.tmpl index cbf65c9..ea18a5f 100644 --- a/templates/nav.tmpl +++ b/templates/nav.tmpl @@ -8,7 +8,7 @@
- {{EmojiFilter .Account.DisplayName .Account.Emojis}} + {{EmojiFilter (html .Account.DisplayName) .Account.Emojis}} followed you - @@ -48,7 +48,7 @@
- {{EmojiFilter .Account.DisplayName .Account.Emojis}} + {{EmojiFilter (html .Account.DisplayName) .Account.Emojis}} wants to follow you - diff --git a/templates/requestlist.tmpl b/templates/requestlist.tmpl index 8142620..d9b2b0a 100644 --- a/templates/requestlist.tmpl +++ b/templates/requestlist.tmpl @@ -9,7 +9,7 @@
-
{{EmojiFilter .DisplayName .Emojis}}
+
{{EmojiFilter (html .DisplayName) .Emojis}}
@{{.Acct}}
diff --git a/templates/status.tmpl b/templates/status.tmpl index a7cc10d..c79633f 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -5,7 +5,7 @@ avatar - {{EmojiFilter .Account.DisplayName .Account.Emojis}} + {{EmojiFilter (html .Account.DisplayName) .Account.Emojis}} @{{.Account.Acct}} @@ -23,7 +23,7 @@
- {{EmojiFilter .Account.DisplayName .Account.Emojis}} + {{EmojiFilter (html .Account.DisplayName) .Account.Emojis}} @{{.Account.Acct}} diff --git a/templates/user.tmpl b/templates/user.tmpl index 32b5681..2532a91 100644 --- a/templates/user.tmpl +++ b/templates/user.tmpl @@ -11,7 +11,7 @@