mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 05:35:55 +00:00
sanitize: reinstate rel=noreferrer on article links
This commit is contained in:
@@ -2831,10 +2831,13 @@
|
|||||||
|
|
||||||
if ($site_url) {
|
if ($site_url) {
|
||||||
|
|
||||||
if ($entry->hasAttribute('href'))
|
if ($entry->hasAttribute('href')) {
|
||||||
$entry->setAttribute('href',
|
$entry->setAttribute('href',
|
||||||
rewrite_relative_url($site_url, $entry->getAttribute('href')));
|
rewrite_relative_url($site_url, $entry->getAttribute('href')));
|
||||||
|
|
||||||
|
$entry->setAttribute('rel', 'noreferrer');
|
||||||
|
}
|
||||||
|
|
||||||
if ($entry->hasAttribute('src')) {
|
if ($entry->hasAttribute('src')) {
|
||||||
$src = rewrite_relative_url($site_url, $entry->getAttribute('src'));
|
$src = rewrite_relative_url($site_url, $entry->getAttribute('src'));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user