add rel=noreferrer to article links
This commit is contained in:
parent
17ca9c640a
commit
202a81e7ba
|
@ -2750,10 +2750,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'));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue