diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2024-03-04 16:12:43 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2024-03-04 16:15:22 +0100 |
commit | d450c6cc5fe4caa2f9a1db3f0ec76c84b6a110af (patch) | |
tree | af20c327f12ee6b0d86bf8e96c1271a7c3dda92a /xP/public/xP.js | |
parent | f8ea1634c4ea6f7dd6f88bff17d05223eba85f8e (diff) | |
download | xK-d450c6cc5fe4caa2f9a1db3f0ec76c84b6a110af.tar.gz xK-d450c6cc5fe4caa2f9a1db3f0ec76c84b6a110af.tar.xz xK-d450c6cc5fe4caa2f9a1db3f0ec76c84b6a110af.zip |
xP: do not send the Referrer header
Diffstat (limited to 'xP/public/xP.js')
-rw-r--r-- | xP/public/xP.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xP/public/xP.js b/xP/public/xP.js index d34ddf8..a6cc303 100644 --- a/xP/public/xP.js +++ b/xP/public/xP.js @@ -529,7 +529,8 @@ let Content = { while ((match = re.exec(text)) !== null) { if (end < match.index) a.push(m('span', attrs, text.substring(end, match.index))) - a.push(m('a[target=_blank]', {href: match[0], ...attrs}, match[0])) + a.push(m('a[target=_blank][rel=noreferrer]', + {href: match[0], ...attrs}, match[0])) end = re.lastIndex } if (end < text.length) @@ -707,7 +708,8 @@ let Log = { while ((match = re.exec(text)) !== null) { if (end < match.index) a.push(text.substring(end, match.index)) - a.push(m('a[target=_blank]', {href: match[0]}, match[0])) + a.push(m('a[target=_blank][rel=noreferrer]', + {href: match[0]}, match[0])) end = re.lastIndex } if (end < text.length) |