aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html/common/feed_list.html
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2020-01-02 11:06:57 -0800
committerGravatar Frédéric Guillot <fred@miniflux.net>2020-01-02 11:20:10 -0800
commit4d9956cf658d7a970654ae3baf23ad995e287525 (patch)
tree475fc8d39549ec24ad09e0fbc0b206ef0141994c /template/html/common/feed_list.html
parentac3c936820033f27e32c9a4490f2f33d6ffd6b05 (diff)
Make sure external URLs are not encoded incorrectly by Go template engine
Diffstat (limited to 'template/html/common/feed_list.html')
-rw-r--r--template/html/common/feed_list.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/html/common/feed_list.html b/template/html/common/feed_list.html
index cb80a1f..8e57ad2 100644
--- a/template/html/common/feed_list.html
+++ b/template/html/common/feed_list.html
@@ -20,7 +20,7 @@
<div class="item-meta">
<ul>
<li>
- <a href="{{ .SiteURL }}" title="{{ .SiteURL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ domain .SiteURL }}</a>
+ <a href="{{ .SiteURL | safeURL }}" title="{{ .SiteURL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ domain .SiteURL }}</a>
</li>
<li>
{{ t "page.feeds.last_check" }} <time datetime="{{ isodate .CheckedAt }}" title="{{ isodate .CheckedAt }}">{{ elapsed $.user.Timezone .CheckedAt }}</time>