diff options
-rw-r--r-- | include/functions.php | 5 |
1 files changed, 4 insertions, 1 deletions
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')); |