From 469f2d1d25f0b266abb15eab410131ebe1856aad Mon Sep 17 00:00:00 2001 From: r Date: Fri, 23 Apr 2021 10:19:09 +0000 Subject: Fix HTML escaping --- templates/header.tmpl | 2 +- templates/search.tmpl | 2 +- templates/status.tmpl | 6 +++--- templates/usersearch.tmpl | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'templates') diff --git a/templates/header.tmpl b/templates/header.tmpl index 1abb6dd..8eb53f6 100644 --- a/templates/header.tmpl +++ b/templates/header.tmpl @@ -17,7 +17,7 @@ {{if .RefreshInterval}} {{end}} - {{if gt .Count 0}}({{.Count}}){{end}} {{.Title}} + {{if gt .Count 0}}({{.Count}}){{end}} {{.Title | html}} {{if .CustomCSS}} diff --git a/templates/search.tmpl b/templates/search.tmpl index 0473d4a..7338cad 100644 --- a/templates/search.tmpl +++ b/templates/search.tmpl @@ -5,7 +5,7 @@
- + diff --git a/templates/status.tmpl b/templates/status.tmpl index d6bfedf..7dcc0b6 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -88,7 +88,7 @@ {{end}} {{if .Content}} -
{{StatusContentFilter .SpoilerText .Content .Emojis .Mentions}}
+
{{StatusContentFilter (html .SpoilerText) .Content .Emojis .Mentions}}
{{end}} {{if .MediaAttachments}}
@@ -153,12 +153,12 @@ {{range $i, $o := .Poll.Options}}
{{if (or $s.Poll.Expired $s.Poll.Voted)}} -
{{EmojiFilter $o.Title $s.Emojis}} - {{$o.VotesCount}} votes
+
{{EmojiFilter $o.Title $s.Emojis | html}} - {{$o.VotesCount}} votes
{{else}} {{end}}
diff --git a/templates/usersearch.tmpl b/templates/usersearch.tmpl index 3f42f28..ee84143 100644 --- a/templates/usersearch.tmpl +++ b/templates/usersearch.tmpl @@ -5,7 +5,7 @@ Query - + -- cgit v1.2.3