From 3b8b23218da924b2be91511628fd6d8911bde02d Mon Sep 17 00:00:00 2001
From: Harrison Healey <harrisonmhealey@gmail.com>
Date: Thu, 5 May 2016 14:17:59 -0400
Subject: Added noreferrer to some links (#2897)

---
 webapp/utils/markdown.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'webapp/utils/markdown.jsx')

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) {
-- 
cgit v1.2.3-1-g7c22

