summaryrefslogtreecommitdiffstats
path: root/db
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 /db
parentc8cf0c1be89388c950310ca8af627bc696841288 (diff)
set noreferrer tag for links pointing to articles
Diffstat (limited to 'db')
-rw-r--r--db/item.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/item.php b/db/item.php
index af76002ff..24cc45de1 100644
--- a/db/item.php
+++ b/db/item.php
@@ -208,7 +208,7 @@ class Item extends Entity implements IAPI, \JsonSerializable {
public function setBody($body) {
// FIXME: this should not happen if the target="_blank" is already
// on the link
- parent::setBody(str_replace('<a', '<a target="_blank"', $body));
+ parent::setBody(str_replace('<a', '<a target="_blank" rel="noreferrer"', $body));
}
}