mirror of
https://github.com/nextcloud/server.git
synced 2024-08-30 17:57:26 +02:00
Adds rel="noopener noreferrer" to _blank links inside comments
For more details, check out https://mathiasbynens.github.io/rel-noopener/ for instance Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
2a24f45b5f
commit
feb4dc383e
@ -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 New Issue
Block a user