diff options
author | r <r@freesoftwareextremist.com> | 2021-11-16 15:29:27 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2021-11-16 15:29:27 +0000 |
commit | b2a9e44db1a703fe0150c5aef7097020a9e1550d (patch) | |
tree | bf2e1b5baa6379e6d8c70b786218e3c4b7c6606b /templates/status.tmpl | |
parent | 4d68062f2d0525a9d2a40e50d60ea9b25daae9ad (diff) | |
download | bloat-b2a9e44db1a703fe0150c5aef7097020a9e1550d.tar.gz bloat-b2a9e44db1a703fe0150c5aef7097020a9e1550d.zip |
Escape user display name
Diffstat (limited to 'templates/status.tmpl')
-rw-r--r-- | templates/status.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ <a class="img-link" href="/user/{{.Account.ID}}"> <img class="status-profile-img" src="{{.Account.Avatar}}" title="@{{.Account.Acct}}" alt="avatar" height="24" /> </a> - <bdi class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </bdi> + <bdi class="status-dname"> {{EmojiFilter (html .Account.DisplayName) .Account.Emojis}} </bdi> <a href="/user/{{.Account.ID}}"> <span class="status-uname"> @{{.Account.Acct}} </span> </a> @@ -23,7 +23,7 @@ </div> <div class="status"> <div class="status-name"> - <bdi class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </bdi> + <bdi class="status-dname"> {{EmojiFilter (html .Account.DisplayName) .Account.Emojis}} </bdi> <a href="/user/{{.Account.ID}}"> <span class="status-uname"> @{{.Account.Acct}} </span> </a> |