]> git.wh0rd.org Git - tt-rss.git/commitdiff
add rel=noreferrer to article links
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 20 Jun 2013 07:59:41 +0000 (11:59 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 20 Jun 2013 07:59:41 +0000 (11:59 +0400)
include/functions.php

index 8be5ac6ae707386917b9d5861087c8464c1b1ca4..a6e13ecc83b23dd19c47d209de09ef4f240c08f9 100644 (file)
 
                        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'));