mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #7787 from nextcloud/add-noopener-to-_blank-links
Adds rel="noopener noreferrer" to _blank links inside comments
This commit is contained in:
commit
118ccca29b
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@
|
|||
}
|
||||
|
||||
var linkText = url.replace(self.protocolRegex, '');
|
||||
return '<a class="external" target="_blank" href="' + url + '">' + linkText + '</a>';
|
||||
return '<a class="external" target="_blank" rel="noopener noreferrer" href="' + url + '">' + linkText + '</a>';
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue