summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-04-20 23:55:06 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2016-04-20 23:55:06 -0500
commitdbe06ac790befe2d49dbb6edecb79d82abfe46e7 (patch)
tree789a4620a6b34eb079f6128b06e29b9c4cb35000
parent2ade37e2534108c72d28605cb131dacf771d27d3 (diff)
downloadgitlab-ce-dbe06ac790befe2d49dbb6edecb79d82abfe46e7.tar.gz
Add noreferrer value to rel attribute for external links
-rw-r--r--lib/banzai/filter/external_link_filter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/banzai/filter/external_link_filter.rb b/lib/banzai/filter/external_link_filter.rb
index d179bea181e..699de56fd4c 100644
--- a/lib/banzai/filter/external_link_filter.rb
+++ b/lib/banzai/filter/external_link_filter.rb
@@ -15,7 +15,7 @@ module Banzai
# Skip internal links
next if link.start_with?(internal_url)
- node.set_attribute('rel', 'nofollow')
+ node.set_attribute('rel', 'nofollow noreferrer')
end
doc