summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-01-06 17:06:22 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-01-06 17:07:24 +0100
commit4ea127ed03feeae1ace8f38b60466bf842528fb1 (patch)
tree41b37e6e26285a1694b6395a34fc8d87e12e10f3 /templates
parentc8cf0c1be89388c950310ca8af627bc696841288 (diff)
set noreferrer tag for links pointing to articles
Diffstat (limited to 'templates')
-rw-r--r--templates/part.content.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/part.content.php b/templates/part.content.php
index b917240aa..90925f5fa 100644
--- a/templates/part.content.php
+++ b/templates/part.content.php
@@ -33,6 +33,7 @@
<a class="external icon-link"
ng-click="Content.markRead(item.id)"
target="_blank"
+ rel="noreferrer"
ng-href="{{ ::item.url }}"
title="<?php p($l->t('Open website')) ?>"
news-stop-propagation>
@@ -105,6 +106,7 @@
<h1>
<a class="external"
target="_blank"
+ rel="noreferrer"
ng-href="{{ ::item.url }}"
title="{{ ::item.title }}">
{{ ::item.title }}
@@ -135,7 +137,9 @@
</p>
<a class="button"
ng-href="{{ ::item.enclosureLink | trustUrl }}"
- target="_blank">
+ target="_blank"
+ rel="noreferrer"
+ >
<?php p($l->t('Download')) ?>
</a>
</news-enclosure>