summaryrefslogtreecommitdiffstats
path: root/webapp/utils/markdown.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-05-05 14:17:59 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-05-05 14:17:59 -0400
commit3b8b23218da924b2be91511628fd6d8911bde02d (patch)
treed7a61b6b5f8fb9c55f75989949e970908ad20e25 /webapp/utils/markdown.jsx
parent654c11bdfd28f5892007f32b48ca0d1c93c05e14 (diff)
downloadchat-3b8b23218da924b2be91511628fd6d8911bde02d.tar.gz
chat-3b8b23218da924b2be91511628fd6d8911bde02d.tar.bz2
chat-3b8b23218da924b2be91511628fd6d8911bde02d.zip
Added noreferrer to some links (#2897)
Diffstat (limited to 'webapp/utils/markdown.jsx')
-rw-r--r--webapp/utils/markdown.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/utils/markdown.jsx b/webapp/utils/markdown.jsx
index fe117274b..2ddd3fe11 100644
--- a/webapp/utils/markdown.jsx
+++ b/webapp/utils/markdown.jsx
@@ -142,7 +142,7 @@ class MattermostMarkdownRenderer extends marked.Renderer {
if (outHref.startsWith(global.location.origin)) {
output += 'data-link="' + outHref.substring(global.location.origin.length) + '"';
} else {
- output += 'href="' + outHref + '" target="_blank"';
+ output += 'href="' + outHref + '" target="_blank" rel="noreferrer"';
}
if (title) {