diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-04-20 23:55:06 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-04-20 23:55:06 -0500 |
commit | dbe06ac790befe2d49dbb6edecb79d82abfe46e7 (patch) | |
tree | 789a4620a6b34eb079f6128b06e29b9c4cb35000 | |
parent | 2ade37e2534108c72d28605cb131dacf771d27d3 (diff) | |
download | gitlab-ce-dbe06ac790befe2d49dbb6edecb79d82abfe46e7.tar.gz |
Add noreferrer value to rel attribute for external links
-rw-r--r-- | lib/banzai/filter/external_link_filter.rb | 2 |
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 |