sanitize: reinstate rel=noreferrer on article links
This commit is contained in:
parent
fd94d63122
commit
5b319e8be2
|
@ -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'));
|
||||
|
||||
|
|
Loading…
Reference in New Issue