client: add noreferrer to outgoing links

This commit is contained in:
mappu 2017-02-05 18:06:18 +13:00
parent 4a4e9e694d
commit 3c1db1266e

View File

@ -52,7 +52,7 @@ var fmtBytes = function(b) {
var linkify = function(str) {
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>"
);
};