From: Andrew Dolgov Date: Wed, 22 Jan 2014 14:28:44 +0000 (+0400) Subject: sanitize: reinstate rel=noreferrer on article links X-Git-Tag: 1.12~117 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5b319e8be2941483ac6b847f83c26c5da53d1d44;p=tt-rss.git sanitize: reinstate rel=noreferrer on article links --- diff --git a/include/functions.php b/include/functions.php index 28b7a7c8..7cdeae3b 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2831,10 +2831,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'));