From: Andrew Dolgov Date: Thu, 20 Jun 2013 07:59:41 +0000 (+0400) Subject: add rel=noreferrer to article links X-Git-Tag: 1.9~101 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=202a81e7ba01d79cdf0a7e0c714a00dde09dc9e4;p=tt-rss.git add rel=noreferrer to article links --- diff --git a/include/functions.php b/include/functions.php index 8be5ac6a..a6e13ecc 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'));