From 202a81e7ba01d79cdf0a7e0c714a00dde09dc9e4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 20 Jun 2013 11:59:41 +0400 Subject: add rel=noreferrer to article links --- include/functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index 8be5ac6ae..a6e13ecc8 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2750,10 +2750,13 @@ if ($site_url) { - if ($entry->hasAttribute('href')) + if ($entry->hasAttribute('href')) { $entry->setAttribute('href', rewrite_relative_url($site_url, $entry->getAttribute('href'))); + $entry->setAttribute('rel', 'noreferrer'); + } + if ($entry->hasAttribute('src')) { $src = rewrite_relative_url($site_url, $entry->getAttribute('src')); -- cgit v1.2.3