client: add noreferrer to outgoing links
This commit is contained in:
parent
4a4e9e694d
commit
3c1db1266e
@ -52,7 +52,7 @@ var fmtBytes = function(b) {
|
|||||||
|
|
||||||
var linkify = function(str) {
|
var linkify = function(str) {
|
||||||
return str.replace(
|
return str.replace(
|
||||||
/(https?:\/\/[^\s<]+)/g, "<a target='_blank' href=\"$1\">$1</a>"
|
/(https?:\/\/[^\s<]+)/g, "<a target='_blank' rel=\"noreferrer\" href=\"$1\">$1</a>"
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user